MCPcopy
hub / github.com/sql-js/sql.js / getCFunc

Function getCFunc

js/sql-debug.js:464–468  ·  view source on GitHub ↗
(ident)

Source from the content-addressed store, hash-verified

462
463// Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
464function 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
470var JSfuncs = {
471 // Helpers for cwrap -- it can't refer to Runtime directly because it might

Callers 2

ccallFunction · 0.70
cwrapFunction · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…