| 867 | |
| 868 | |
| 869 | LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, |
| 870 | const char *chunkname) { |
| 871 | ZIO z; |
| 872 | int status; |
| 873 | lua_lock(L); |
| 874 | if (!chunkname) chunkname = "?"; |
| 875 | luaZ_init(L, &z, reader, data); |
| 876 | status = luaD_protectedparser(L, &z, chunkname); |
| 877 | lua_unlock(L); |
| 878 | return status; |
| 879 | } |
| 880 | |
| 881 | |
| 882 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { |
no test coverage detected