nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

callback.js (344B)


      1 addToLibrary({
      2 
      3 cbfl: [],
      4 
      5 addCallbackFunction__deps: [ 'cbfl' ],
      6 addCallbackFunction: function(f) {
      7   _cbfl.push(f)
      8   return _cbfl.length - 1
      9 },
     10 
     11 callFunction__deps: [ 'cbfl' ],
     12 callFunction: function(id, arg) {
     13   _cbfl[id](UTF8ToString(arg))
     14 },
     15 
     16 callFunctionInt__deps: [ 'cbfl' ],
     17 callFunctionInt: function(id) {
     18   return _cbfl[id]()
     19 },
     20 
     21 });