(func)
| 360 | var functionPointers = new Array(64); |
| 361 | |
| 362 | function 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 | |
| 372 | function removeFunction(index) { |
| 373 | functionPointers[(index-2)/2] = null; |
no outgoing calls
no test coverage detected
searching dependent graphs…