aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index b7c9c157..a1a3ac2f 100644
--- a/src/library.js
+++ b/src/library.js
@@ -306,6 +306,20 @@ var Library = {
IHEAP[ptr + indexes[1]] = Math.floor((now-1000*Math.floor(now/1000))*1000); // microseconds
return 0;
},
+
+ // setjmp.h
+
+ _setjmp: function(env) {
+ // not really working...
+ assert(!arguments.callee.called);
+ arguments.callee.called = true;
+ return 0;
+ },
+
+ _longjmp: function(env, val) {
+ // not really working...
+ assert(0);
+ },
};
load('library_sdl.js');