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

Function checkmode

third-party/lua-5.2.4/src/ldo.c:631–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629
630
631static void checkmode (lua_State *L, const char *mode, const char *x) {
632 if (mode && strchr(mode, x[0]) == NULL) {
633 luaO_pushfstring(L,
634 "attempt to load a %s chunk (mode is " LUA_QS ")", x, mode);
635 luaD_throw(L, LUA_ERRSYNTAX);
636 }
637}
638
639
640static 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