diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-03 18:22:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-03 18:22:37 -0700 |
commit | af7dedb9be77ed2ce6bc3b14d2a250c0e233ce4d (patch) | |
tree | 2d637333a4095ac4959685af6b33613cb5ce3507 /src/library.js | |
parent | 60faa96b411e8427c4dcb19720bffbe3a73e9f7b (diff) |
show stub malloc/free warnings only in ASSERTIONS==2
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index 5e2cb482..dcfe333c 100644 --- a/src/library.js +++ b/src/library.js @@ -3798,14 +3798,14 @@ LibraryManager.library = { * implementation (replaced by dlmalloc normally) so * not an issue. */ -#if ASSERTIONS +#if ASSERTIONS == 2 Runtime.warnOnce('using stub malloc (reference it from C to have the real one included)'); #endif var ptr = Runtime.dynamicAlloc(bytes + 8); return (ptr+8) & 0xFFFFFFF8; }, free: function() { -#if ASSERTIONS +#if ASSERTIONS == 2 Runtime.warnOnce('using stub free (reference it from C to have the real one included)'); #endif }, |