MCPcopy Create free account
hub / github.com/apache/thrift / throw_argerror

Function throw_argerror

lib/lua/src/luasocket.c:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// Util
46
47static void throw_argerror(lua_State *L, int index, const char *expected) {
48 char msg[256];
49 sprintf(msg, "%s expected, got %s", expected, luaL_typename(L, index));
50 luaL_argerror(L, index, msg);
51}
52
53static void *checkgroup(lua_State *L, int index, const char *groupname) {
54 if (!lua_getmetatable(L, index)) {

Callers 1

checkgroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected