MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / checkmode

Function checkmode

third-party/lua-5.5.0/src/ldo.c:1114–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112
1113
1114static void checkmode (lua_State *L, const char *mode, const char *x) {
1115 if (strchr(mode, x[0]) == NULL) {
1116 luaO_pushfstring(L,
1117 "attempt to load a %s chunk (mode is '%s')", x, mode);
1118 luaD_throw(L, LUA_ERRSYNTAX);
1119 }
1120}
1121
1122
1123static void f_parser (lua_State *L, void *ud) {

Callers 1

f_parserFunction · 0.70

Calls 2

luaO_pushfstringFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected