aboutsummaryrefslogtreecommitdiff
path: root/src/lj_vmmath.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-11-26 16:54:52 +0100
committerMike Pall <mike>2011-11-26 16:56:09 +0100
commite3c7476533c892ab1ac24dea45efb4204b15c577 (patch)
tree6b8518de918dab2662e9f4edb75aae0f40a319f3 /src/lj_vmmath.c
parent1a42c038071d31a0ba8a300e59bb6b2b1d8d5fb1 (diff)
downloadluajit-e3c7476533c892ab1ac24dea45efb4204b15c577.tar.gz
luajit-e3c7476533c892ab1ac24dea45efb4204b15c577.tar.bz2
luajit-e3c7476533c892ab1ac24dea45efb4204b15c577.zip
FFI: Record ffi.errno().
Diffstat (limited to '')
-rw-r--r--src/lj_vmmath.c8
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 @@
6#define lj_vmmath_c 6#define lj_vmmath_c
7#define LUA_CORE 7#define LUA_CORE
8 8
9#include <errno.h>
9#include <math.h> 10#include <math.h>
10 11
11#include "lj_obj.h" 12#include "lj_obj.h"
@@ -108,4 +109,11 @@ double lj_vm_foldfpm(double x, int fpm)
108} 109}
109#endif 110#endif
110 111
112#if LJ_HASFFI
113int lj_vm_errno(void)
114{
115 return errno;
116}
117#endif
118
111#endif 119#endif