MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaL_checktype

Function luaL_checktype

depends/lua/src/lauxlib.c:378–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377
378LUALIB_API void luaL_checktype (lua_State *L, int arg, int t) {
379 if (lua_type(L, arg) != t)
380 tag_error(L, arg, t);
381}
382
383
384LUALIB_API void luaL_checkany (lua_State *L, int arg) {

Callers 15

GetVectorMethod · 0.85
dfhack_cowrapFunction · 0.85
lua_dfhack_with_suspendFunction · 0.85
dfhack_open_pluginFunction · 0.85
dfhack_event_lenFunction · 0.85
dfhack_event_tostringFunction · 0.85
dfhack_event_indexFunction · 0.85
dfhack_event_nextFunction · 0.85
dfhack_event_pairsFunction · 0.85
dfhack_event_newindexFunction · 0.85

Calls 2

lua_typeFunction · 0.85
tag_errorFunction · 0.85

Tested by

no test coverage detected