| 3320 | } |
| 3321 | |
| 3322 | static 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 | |
| 3330 | typedef struct { |
| 3331 | lua_Reader reader; |
no outgoing calls
no test coverage detected