MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / typerror

Function typerror

libaegisub/lua/utils.cpp:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206[[noreturn]] int typerror(lua_State *L, int narg, const char *tname) {
207 const char *msg = lua_pushfstring(L, "%s expected, got %s",
208 tname, luaL_typename(L, narg));
209 argerror(L, narg, msg);
210}
211
212void argcheck(lua_State *L, bool cond, int narg, const char *msg) {
213 if (!cond) argerror(L, narg, msg);

Callers 4

check_stringFunction · 0.85
check_intFunction · 0.85
check_uintFunction · 0.85
check_udataFunction · 0.85

Calls 1

argerrorFunction · 0.85

Tested by

no test coverage detected