diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_lib.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lj_lib.h b/src/lj_lib.h index 1cba3778..59a0f2be 100644 --- a/src/lj_lib.h +++ b/src/lj_lib.h | |||
@@ -48,6 +48,15 @@ LJ_FUNC int lj_lib_checkopt(lua_State *L, int narg, int def, const char *lst); | |||
48 | #define lj_lib_upvalue(L, n) \ | 48 | #define lj_lib_upvalue(L, n) \ |
49 | (&gcref((L->base-1)->fr.func)->fn.c.upvalue[(n)-1]) | 49 | (&gcref((L->base-1)->fr.func)->fn.c.upvalue[(n)-1]) |
50 | 50 | ||
51 | #ifdef LUA_USE_WIN | ||
52 | #define lj_lib_checkfpu(L) \ | ||
53 | do { setnumV(L->top++, (lua_Number)1437217655); \ | ||
54 | if (lua_tointeger(L, -1) != 1437217655) lj_err_caller(L, LJ_ERR_BADFPU); \ | ||
55 | L->top--; } while (0) | ||
56 | #else | ||
57 | #define lj_lib_checkfpu(L) UNUSED(L) | ||
58 | #endif | ||
59 | |||
51 | /* Library function declarations. Scanned by buildvm. */ | 60 | /* Library function declarations. Scanned by buildvm. */ |
52 | #define LJLIB_CF(name) static int lj_cf_##name(lua_State *L) | 61 | #define LJLIB_CF(name) static int lj_cf_##name(lua_State *L) |
53 | #define LJLIB_ASM(name) static int lj_ffh_##name(lua_State *L) | 62 | #define LJLIB_ASM(name) static int lj_ffh_##name(lua_State *L) |