diff options
author | Mike Pall <mike> | 2011-11-26 16:54:52 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-11-26 16:56:09 +0100 |
commit | e3c7476533c892ab1ac24dea45efb4204b15c577 (patch) | |
tree | 6b8518de918dab2662e9f4edb75aae0f40a319f3 /src/lj_vmmath.c | |
parent | 1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1 (diff) | |
download | luajit2-e3c7476533c892ab1ac24dea45efb4204b15c577.tar.gz |
FFI: Record ffi.errno().
Diffstat (limited to 'src/lj_vmmath.c')
-rw-r--r-- | src/lj_vmmath.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_vmmath.c b/src/lj_vmmath.c index ec3d98af..8b177207 100644 --- a/src/lj_vmmath.c +++ b/src/lj_vmmath.c @@ -6,6 +6,7 @@ #define lj_vmmath_c #define LUA_CORE +#include <errno.h> #include <math.h> #include "lj_obj.h" @@ -108,4 +109,11 @@ double lj_vm_foldfpm(double x, int fpm) } #endif +#if LJ_HASFFI +int lj_vm_errno(void) +{ + return errno; +} +#endif + #endif |