| /** | |
| * @license | |
| * Copyright 2017 The Emscripten Authors | |
| * SPDX-License-Identifier: MIT | |
| */ | |
| var STACK_ALIGN = {{{ STACK_ALIGN }}}; | |
| {{{ getNativeTypeSize }}} | |
| function warnOnce(text) { | |
| if (!warnOnce.shown) warnOnce.shown = {}; | |
| if (!warnOnce.shown[text]) { | |
| warnOnce.shown[text] = 1; | |
| err(text); | |
| } | |
| } | |
| #include "runtime_functions.js" | |
| #include "runtime_debug.js" | |
| var tempRet0 = 0; | |
| var setTempRet0 = function(value) { | |
| tempRet0 = value; | |
| }; | |
| var getTempRet0 = function() { | |
| return tempRet0; | |
| }; | |
| #if RETAIN_COMPILER_SETTINGS | |
| var compilerSettings = {{{ JSON.stringify(makeRetainedCompilerSettings()) }}} ; | |
| function getCompilerSetting(name) { | |
| if (!(name in compilerSettings)) return 'invalid compiler setting: ' + name; | |
| return compilerSettings[name]; | |
| } | |
| #endif // RETAIN_COMPILER_SETTINGS | |
| #if USE_PTHREADS | |
| // JS library code refers to Atomics in the manner used from asm.js, provide | |
| // the same API here. | |
| var Atomics_load = Atomics.load; | |
| var Atomics_store = Atomics.store; | |
| var Atomics_compareExchange = Atomics.compareExchange; | |
| #endif |