MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / checkmode

Function checkmode

lib/lua/src/ldo.c:983–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981
982
983static void checkmode (lua_State *L, const char *mode, const char *x) {
984 if (mode && strchr(mode, x[0]) == NULL) {
985 luaO_pushfstring(L,
986 "attempt to load a %s chunk (mode is '%s')", x, mode);
987 luaD_throw(L, LUA_ERRSYNTAX);
988 }
989}
990
991
992static 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