aboutsummaryrefslogtreecommitdiff
path: root/src/postamble_sharedlib.js
diff options
context:
space:
mode:
authorkripken <alonzakai@gmail.com>2011-06-25 19:57:46 -0700
committerkripken <alonzakai@gmail.com>2011-06-25 19:57:46 -0700
commit196f9949ba69351a403017de49e3c8cd16879dd7 (patch)
treed0c0d4f70c24b8ee9c6468ba50dcca2d4c2d445f /src/postamble_sharedlib.js
parent5595ad6270c335ec353d25f0a7ef2ab2319ae8c0 (diff)
parent0575efbfafda86bbc921b086167aefc59252ecde (diff)
Merge pull request #32 from max99x/master
Basic dynamic loading support
Diffstat (limited to 'src/postamble_sharedlib.js')
-rw-r--r--src/postamble_sharedlib.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/postamble_sharedlib.js b/src/postamble_sharedlib.js
new file mode 100644
index 00000000..1fd78f23
--- /dev/null
+++ b/src/postamble_sharedlib.js
@@ -0,0 +1,15 @@
+
+// === Auto-generated postamble setup entry stuff ===
+
+function run(args) {
+ {{GLOBAL_VARS}}
+ __globalConstructor__();
+}
+Module['run'] = run;
+
+// {{PRE_RUN_ADDITIONS}}
+
+run();
+
+// {{POST_RUN_ADDITIONS}}
+