| 896 | |
| 897 | |
| 898 | LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, |
| 899 | const char *chunkname) { |
| 900 | ZIO z; |
| 901 | int status; |
| 902 | lua_lock(L); |
| 903 | if (!chunkname) chunkname = "?"; |
| 904 | luaZ_init(L, &z, reader, data); |
| 905 | status = luaD_protectedparser(L, &z, chunkname); |
| 906 | lua_unlock(L); |
| 907 | return status; |
| 908 | } |
| 909 | |
| 910 | |
| 911 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { |
no test coverage detected