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

Function checkmode

third-party/lua-5.4.6/src/ldo.c:990–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988
989
990static void checkmode (lua_State *L, const char *mode, const char *x) {
991 if (mode && strchr(mode, x[0]) == NULL) {
992 luaO_pushfstring(L,
993 "attempt to load a %s chunk (mode is '%s')", x, mode);
994 luaD_throw(L, LUA_ERRSYNTAX);
995 }
996}
997
998
999static 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