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

Function checkmode

xrepo/packages/l/lua/port/lua/src/ldo.c:952–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950
951
952static void checkmode (lua_State *L, const char *mode, const char *x) {
953 if (mode && strchr(mode, x[0]) == NULL) {
954 luaO_pushfstring(L,
955 "attempt to load a %s chunk (mode is '%s')", x, mode);
956 luaD_throw(L, LUA_ERRSYNTAX);
957 }
958}
959
960
961static void f_parser (lua_State *L, void *ud) {

Callers 1

f_parserFunction · 0.85

Calls 2

luaO_pushfstringFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected