Skip to content

Commit d9bb2a2

Browse files
committed
Added setjmp/longjmp aliases.
1 parent ff8790c commit d9bb2a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/library.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4706,15 +4706,17 @@ LibraryManager.library = {
47064706
// setjmp.h
47074707
// ==========================================================================
47084708

4709-
_setjmp: function(env) {
4709+
setjmp: function(env) {
47104710
// XXX print('WARNING: setjmp() not really implemented, will fail if longjmp() is actually called');
47114711
return 0;
47124712
},
4713+
_setjmp: 'setjmp',
47134714

4714-
_longjmp: function(env, val) {
4715+
longjmp: function(env, val) {
47154716
// not really working...
47164717
assert(0);
47174718
},
4719+
_longjmp: 'longjmp',
47184720

47194721
// ==========================================================================
47204722
// signal.h

0 commit comments

Comments
 (0)