aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-09 20:51:52 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-09 20:51:52 -0800
commit660398be701fa73c13d2828379404018d4292e0e (patch)
treec477cca3484ef186a6ddb9457716c9621a2321fb
parentcac39316acdecebaa2387ef3c27ef89be0962455 (diff)
__errno_location
-rw-r--r--src/library.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 374a0952..78af28cd 100644
--- a/src/library.js
+++ b/src/library.js
@@ -642,6 +642,16 @@ var Library = {
}
return me.ret;
},
+
+ // errno.h
+
+ __errno_location: function() {
+ var me = arguments.callee;
+ if (!me.ret) {
+ me.ret = Pointer_make([0], 0, ALLOC_STATIC);
+ }
+ return me.ret;
+ },
};
load('library_sdl.js');