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

Function compat53_checkmode

Libs/sol/sol.hpp:3322–3328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3320}
3321
3322static int compat53_checkmode(lua_State* L, const char* mode, const char* modename, int err) {
3323 if (mode && strchr(mode, modename[0]) == NULL) {
3324 lua_pushfstring(L, "attempt to load a %s chunk (mode is '%s')", modename, mode);
3325 return err;
3326 }
3327 return LUA_OK;
3328}
3329
3330typedef struct {
3331 lua_Reader reader;

Callers 2

lua_loadFunction · 0.85
luaL_loadbufferxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected