MCPcopy Create free account
hub / github.com/sql-js/sql.js / addFunction

Function addFunction

js/sql-debug.js:362–370  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

360var functionPointers = new Array(64);
361
362function addFunction(func) {
363 for (var i = 0; i < functionPointers.length; i++) {
364 if (!functionPointers[i]) {
365 functionPointers[i] = func;
366 return 2*(1 + i);
367 }
368 }
369 throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
370}
371
372function removeFunction(index) {
373 functionPointers[(index-2)/2] = null;

Callers 1

sql-debug.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…