aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-08-30 10:03:50 +0300
committermax99x <max99x@gmail.com>2011-08-30 10:03:50 +0300
commitd9bb2a2607f95b358775eff1902dd0743ceb6b17 (patch)
treeeaf8413f66bff2bf26cb72698ae11c39d5fa65c9
parentff8790c4a0844672e7915a6e73d4f1b06b74f8a4 (diff)
Added setjmp/longjmp aliases.
-rw-r--r--src/library.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 560ddb86..9cb1967a 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4706,15 +4706,17 @@ LibraryManager.library = {
// setjmp.h
// ==========================================================================
- _setjmp: function(env) {
+ setjmp: function(env) {
// XXX print('WARNING: setjmp() not really implemented, will fail if longjmp() is actually called');
return 0;
},
+ _setjmp: 'setjmp',
- _longjmp: function(env, val) {
+ longjmp: function(env, val) {
// not really working...
assert(0);
},
+ _longjmp: 'longjmp',
// ==========================================================================
// signal.h