diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-16 12:22:34 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-16 12:22:34 -0800 |
commit | abcc12003c814608f305b09044218996e1214ab1 (patch) | |
tree | 079837f7ef90168e1c72f39215213821d261bee4 /src/preamble.js | |
parent | d53e12ae8e561ee1aecf76c48e2f4eff260af0d3 (diff) |
allow defining asm library functions, which are then included as if they were generated code
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/preamble.js b/src/preamble.js index cb01994f..0a49f1c7 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -750,17 +750,6 @@ function exitRuntime() { CorrectionsMonitor.print(); } -function String_len(ptr) { - var i = ptr; - while ({{{ makeGetValue('i++', '0', 'i8') }}}) { // Note: should be |!= 0|, technically. But this helps catch bugs with undefineds -#if ASSERTIONS - assert(i < TOTAL_MEMORY); -#endif - } - return i - ptr - 1; -} -Module['String_len'] = String_len; - // Tools // This processes a JS string into a C-line array of numbers, 0-terminated. |