MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaL_typerror

Function luaL_typerror

lua/lauxlib.c:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

tag_errorFunction · 0.85
luaL_checkudataFunction · 0.85

Calls 2

lua_pushfstringFunction · 0.85
luaL_argerrorFunction · 0.85

Tested by

no test coverage detected