MCPcopy Create free account
hub / github.com/F-Stack/f-stack / checkmode

Function checkmode

freebsd/contrib/openzfs/module/lua/ldo.c:706–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704
705
706static void checkmode (lua_State *L, const char *mode, const char *x) {
707 if (mode && strchr(mode, x[0]) == NULL) {
708 luaO_pushfstring(L,
709 "attempt to load a %s chunk (mode is " LUA_QS ")", x, mode);
710 luaD_throw(L, LUA_ERRSYNTAX);
711 }
712}
713
714
715static void f_parser (lua_State *L, void *ud) {

Callers 1

f_parserFunction · 0.85

Calls 3

strchrFunction · 0.85
luaO_pushfstringFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected