aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-11 17:36:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-11 17:46:54 -0700
commit8d53fec332c633f57910a5679ce3ae68f5f35969 (patch)
treef5975ae25d890890673a1fe6b51e023d23f1beeb /src/library.js
parent753b1f7edafb264b6ad6db97d2f483bc9f5ba7e2 (diff)
add ASSERTIONS to asm2g, and fix assertions for asm
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
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;
},