@param {boolean=} fixedasm
(name, fixedasm)
| 725 | // end include: URIUtils.js |
| 726 | /** @param {boolean=} fixedasm */ |
| 727 | function createExportWrapper(name, fixedasm) { |
| 728 | return function() { |
| 729 | var displayName = name; |
| 730 | var asm = fixedasm; |
| 731 | if (!fixedasm) { |
| 732 | asm = Module['asm']; |
| 733 | } |
| 734 | assert(runtimeInitialized, 'native function `' + displayName + '` called before runtime initialization'); |
| 735 | if (!asm[name]) { |
| 736 | assert(asm[name], 'exported native function `' + displayName + '` not found'); |
| 737 | } |
| 738 | return asm[name].apply(null, arguments); |
| 739 | }; |
| 740 | } |
| 741 | |
| 742 | // include: runtime_exceptions.js |
| 743 | // end include: runtime_exceptions.js |