diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 1c1ec915..c59a50d1 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -430,6 +430,9 @@ Module['getValue'] = getValue; var ALLOC_NORMAL = 0; // Tries to use _malloc() var ALLOC_STACK = 1; // Lives for the duration of the current function call var ALLOC_STATIC = 2; // Cannot be freed +Module['ALLOC_NORMAL'] = ALLOC_NORMAL; +Module['ALLOC_STACK'] = ALLOC_STACK; +Module['ALLOC_STATIC'] = ALLOC_STATIC; function allocate(slab, types, allocator) { var zeroinit, size; |