Sha256: 6a79c40d5f25b8796b8d40831fb709305be84fec7749883a24e56a8ea9c6af31

Contents?: true

Size: 582 Bytes

Versions: 8

Compression:

Stored size: 582 Bytes

Contents

// === 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 ===

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webruby-0.2.7 modules/emscripten/src/preamble_sharedlib.js
webruby-0.2.5 modules/emscripten/src/preamble_sharedlib.js
webruby-0.2.4 modules/emscripten/src/preamble_sharedlib.js
webruby-0.2.2 modules/emscripten/src/preamble_sharedlib.js
webruby-0.2.1 modules/emscripten/src/preamble_sharedlib.js
webruby-0.1.2 modules/emscripten/src/preamble_sharedlib.js
webruby-0.1.1 modules/emscripten/src/preamble_sharedlib.js
webruby-0.1.0 modules/emscripten/src/preamble_sharedlib.js