Boost.Predef should provide a way to detect WASM

Open
#131 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp, wasm
Domain
compilers

Research direction

The issue names no target files or tests. Start by reproducing the listed em++ macro output and inspect how Boost.Predef currently exposes platform or compiler detection. Done means Boost.Predef provides a documented WASM detection result for the shown macro environment, with coverage for that case.

Written by the indexing model from the issue text.

Description

Relevant macros gathered from echo | em++ -dM -E -x c++ -:

#define EMSCRIPTEN 1
#define __EMSCRIPTEN__ 1
#define __wasm 1
#define __wasm32 1
#define __wasm32__ 1
#define __wasm__ 1
Dominant language
C
Stars
56
Forks
87
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/predef

All issues in boostorg/predef

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.