MCPcopy Create free account
hub / github.com/defold/defold / luaL_typerror

Function luaL_typerror

engine/lua/src/lua/lauxlib.c:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) {
62 const char *msg = lua_pushfstring(L, "%s expected, got %s",
63 tname, luaL_typename(L, narg));
64 return luaL_argerror(L, narg, msg);
65}
66
67
68static void tag_error (lua_State *L, int narg, int tag) {

Callers 6

tag_errorFunction · 0.70
luaL_checkudataFunction · 0.70
LuaAnimateFunction · 0.50
CheckStreamFunction · 0.50
CopyStreamFunction · 0.50

Calls 2

lua_pushfstringFunction · 0.85
luaL_argerrorFunction · 0.85

Tested by

no test coverage detected