| 860 | |
| 861 | |
| 862 | LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, |
| 863 | const char *chunkname) { |
| 864 | ZIO z; |
| 865 | int status; |
| 866 | lua_lock(L); |
| 867 | if (!chunkname) chunkname = "?"; |
| 868 | luaZ_init(L, &z, reader, data); |
| 869 | status = luaD_protectedparser(L, &z, chunkname); |
| 870 | lua_unlock(L); |
| 871 | return status; |
| 872 | } |
| 873 | |
| 874 | |
| 875 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { |
no test coverage detected