| 2803 | } |
| 2804 | |
| 2805 | static 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 | |
| 2813 | typedef struct { |
| 2814 | lua_Reader reader; |
no test coverage detected