Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ lua_type
Function
lua_type
depends/lua/src/lapi.c:251–254 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
249
250
251
LUA_API int lua_type (lua_State *L, int idx) {
252
StkId o = index2addr(L, idx);
253
return (isvalid(o) ? ttnov(o) : LUA_TNONE);
254
}
255
256
257
LUA_API const char *lua_typename (lua_State *L, int t) {
Callers
15
check_valid_ptr_index
Function · 0.85
find_primitive_field
Function · 0.85
meta_primitive_index
Function · 0.85
lookup_container_field
Function · 0.85
check_container_index
Function · 0.85
get_char_field
Function · 0.85
dfhack_pen_newindex
Function · 0.85
screen_paintTile
Function · 0.85
checkaddr
Function · 0.85
internal_runCommand
Function · 0.85
msghandler
Function · 0.85
luaB_tonumber
Function · 0.85
Calls
1
index2addr
Function · 0.85
Tested by
no test coverage detected