MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / checkmode

Function checkmode

extlibs/lua/src/ldo.c:777–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775
776
777static void checkmode (lua_State *L, const char *mode, const char *x) {
778 if (mode && strchr(mode, x[0]) == NULL) {
779 luaO_pushfstring(L,
780 "attempt to load a %s chunk (mode is '%s')", x, mode);
781 luaD_throw(L, LUA_ERRSYNTAX);
782 }
783}
784
785
786static void f_parser (lua_State *L, void *ud) {

Callers 1

f_parserFunction · 0.85

Calls 2

luaO_pushfstringFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected