Force error if lua_newstate() is used in 64 bit mode.

This commit is contained in:
Mike Pall
2010-01-24 15:50:59 +01:00
parent 43f1e13470
commit 055396a69d
3 changed files with 21 additions and 0 deletions

View File

@@ -158,7 +158,11 @@ static void close_state(lua_State *L)
}
}
#if LJ_64
lua_State *lj_state_newstate(lua_Alloc f, void *ud)
#else
LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
#endif
{
GG_State *GG = cast(GG_State *, f(ud, NULL, 0, sizeof(GG_State)));
lua_State *L = &GG->L;