diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index 74425e4f..f9cab641 100644 --- a/src/library.js +++ b/src/library.js @@ -4202,8 +4202,10 @@ LibraryManager.library = { memcpy: function (dest, src, num) { // simple version, in general it should not be used - we should pull it in from libc -#if ASSERTIONS - Module.printErr('warning: library.js memcpy should not be running!'); + if (!_memcpy.shown) { + _memcpy.shown = true; + Module.printErr('warning: library.js memcpy should not be running, it is only for testing!'); + } #endif while (num--) { HEAP8[dest++] = HEAP8[src++]; |