(ident)
| 462 | |
| 463 | // Returns the C function with a specified identifier (for C++, you need to do manual name mangling) |
| 464 | function getCFunc(ident) { |
| 465 | var func = Module['_' + ident]; // closure exported function |
| 466 | assert(func, 'Cannot call unknown function ' + ident + ', make sure it is exported'); |
| 467 | return func; |
| 468 | } |
| 469 | |
| 470 | var JSfuncs = { |
| 471 | // Helpers for cwrap -- it can't refer to Runtime directly because it might |