File: shared_memory_preprocessor_flags.c

package info (click to toggle)
emscripten 3.1.69%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 121,860 kB
  • sloc: ansic: 636,110; cpp: 425,974; javascript: 78,401; python: 58,404; sh: 49,154; pascal: 5,237; makefile: 3,366; asm: 2,415; lisp: 1,869
file content (13 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This file should be compiled with -sSHARED_MEMORY=1

#ifndef __EMSCRIPTEN_SHARED_MEMORY__
#error __EMSCRIPTEN_SHARED_MEMORY__ should be defined when building with -sSHARED_MEMORY=1!
#endif

#ifdef __EMSCRIPTEN_WASM_WORKERS__
#error __EMSCRIPTEN_WASM_WORKERS__ should not defined when building with -sSHARED_MEMORY=1!
#endif

#ifdef __EMSCRIPTEN_PTHREADS__
#error __EMSCRIPTEN_PTHREADS__ should not be defined when building with -sSHARED_MEMORY=1!
#endif