| 2709 | |
| 2710 | |
| 2711 | LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, |
| 2712 | const char *chunkname) { |
| 2713 | ZIO z; |
| 2714 | int status; |
| 2715 | lua_lock(L); |
| 2716 | if (!chunkname) chunkname = "?"; |
| 2717 | luaZ_init(L, &z, reader, data); |
| 2718 | status = luaD_protectedparser(L, &z, chunkname); |
| 2719 | lua_unlock(L); |
| 2720 | return status; |
| 2721 | } |
| 2722 | |
| 2723 | |
| 2724 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { |
no test coverage detected