FFI: Record ffi.errno().

This commit is contained in:
Mike Pall
2011-11-26 16:54:52 +01:00
parent 1a42c03807
commit e3c7476533
7 changed files with 24 additions and 2 deletions

View File

@@ -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