Revision 0725ff3edc2ddddbd126193ca8ccaf392044b5ab authored by Bruce Mitchener on 25 September 2013, 04:58:12 UTC, committed by Bruce Mitchener on 25 September 2013, 23:46:53 UTC
1 parent 894d13a
Raw File
preamble_sharedlib.js
// === Auto-generated preamble library stuff ===

//========================================
// Runtime essentials
//========================================

function callRuntimeCallbacks(callbacks) {
  while(callbacks.length > 0) {
    var callback = callbacks.pop();
    var func = callback.func;
    if (typeof func === 'number') {
      func = FUNCTION_TABLE[func];
    }
    func(callback.arg === undefined ? null : callback.arg);
  }
}

var __ATINIT__ = []; // functions called during startup

function initRuntime() {
  callRuntimeCallbacks(__ATINIT__);
}

// === Body ===

back to top