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

Function compat53_checkmode

extlibs/sol3/include/sol/sol.hpp:2805–2811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2803}
2804
2805static int compat53_checkmode(lua_State *L, const char *mode, const char *modename, int err) {
2806 if (mode && strchr(mode, modename[0]) == NULL) {
2807 lua_pushfstring(L, "attempt to load a %s chunk (mode is '%s')", modename, mode);
2808 return err;
2809 }
2810 return LUA_OK;
2811}
2812
2813typedef struct {
2814 lua_Reader reader;

Callers 2

lua_loadFunction · 0.85
luaL_loadbufferxFunction · 0.85

Calls 1

lua_pushfstringFunction · 0.85

Tested by

no test coverage detected