Searched refs:lua_state (Results 1 – 3 of 3) sorted by relevance
/netbsd-src/external/bsd/lutok/dist/ |
H A D | state.cpp | 221 lua_State* lua_state; member 231 lua_state(lua_), in impl() 270 if (_pimpl->owned && _pimpl->lua_state != NULL) in ~state() 286 assert(_pimpl->lua_state != NULL); in close() 287 assert(lua_gettop(_pimpl->lua_state) == 0); in close() 288 lua_close(_pimpl->lua_state); in close() 289 _pimpl->lua_state = NULL; in close() 304 lua_pushcfunction(_pimpl->lua_state, protected_getglobal); in get_global() 305 lua_pushstring(_pimpl->lua_state, name.c_str()); in get_global() 306 if (lua_pcall(_pimpl->lua_state, 1, 1, 0) != 0) in get_global() [all …]
|
/netbsd-src/sys/modules/lua/ |
H A D | lua.c | 77 static LIST_HEAD(, lua_state) lua_states = 208 struct lua_state *s; in lua_detach() 225 kmem_free(s, sizeof(struct lua_state)); in lua_detach() 286 struct lua_state *s; in luaioctl() 503 struct lua_state *s; in lua_require() 669 struct lua_state *s; in klua_newstate() 673 s = kmem_zalloc(sizeof(struct lua_state), KM_SLEEP); in klua_newstate() 686 kmem_free(s, sizeof(struct lua_state)); in klua_newstate() 728 struct lua_state *s, *ns; in klua_close() 757 kmem_free(s, sizeof(struct lua_state)); in klua_close() [all …]
|
H A D | luavar.h | 43 struct lua_state { struct 48 LIST_ENTRY(lua_state) lua_next; argument
|