Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/module/lua/lapi.c
| Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { | ||||
| } | } | ||||
| lua_unlock(to); | lua_unlock(to); | ||||
| } | } | ||||
| LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { | ||||
| lua_CFunction old; | lua_CFunction old; | ||||
| lua_lock(L); | lua_lock(L); | ||||
| old = G(L)->panic; | old = G(L)->on_panic; | ||||
| G(L)->panic = panicf; | G(L)->on_panic = panicf; | ||||
| lua_unlock(L); | lua_unlock(L); | ||||
| return old; | return old; | ||||
| } | } | ||||
| LUA_API const lua_Number *lua_version (lua_State *L) { | LUA_API const lua_Number *lua_version (lua_State *L) { | ||||
| static const lua_Number version = LUA_VERSION_NUM; | static const lua_Number version = LUA_VERSION_NUM; | ||||
| if (L == NULL) return &version; | if (L == NULL) return &version; | ||||
| ▲ Show 20 Lines • Show All 1,187 Lines • Show Last 20 Lines | |||||