diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-11 17:36:46 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-11 17:46:54 -0700 |
commit | 8d53fec332c633f57910a5679ce3ae68f5f35969 (patch) | |
tree | f5975ae25d890890673a1fe6b51e023d23f1beeb /src/library.js | |
parent | 753b1f7edafb264b6ad6db97d2f483bc9f5ba7e2 (diff) |
add ASSERTIONS to asm2g, and fix assertions for asm
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index d787e30c..12e550ff 100644 --- a/src/library.js +++ b/src/library.js @@ -4155,8 +4155,10 @@ LibraryManager.library = { memcpy__inline: function (dest, src, num, align) { var ret = ''; #if ASSERTIONS +#if ASM_JS == 0 ret += "assert(" + num + " % 1 === 0);"; //, 'memcpy given ' + " + num + " + ' bytes to copy. Problem with quantum=1 corrections perhaps?');"; #endif +#endif ret += makeCopyValues(dest, src, num, 'null', null, align); return ret; }, |