| 1014 | |
| 1015 | |
| 1016 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data, int strip) { |
| 1017 | int status; |
| 1018 | TValue *o; |
| 1019 | lua_lock(L); |
| 1020 | api_checknelems(L, 1); |
| 1021 | o = L->top - 1; |
| 1022 | if (isLfunction(o)) |
| 1023 | status = luaU_dump(L, getproto(o), writer, data, strip); |
| 1024 | else |
| 1025 | status = 1; |
| 1026 | lua_unlock(L); |
| 1027 | return status; |
| 1028 | } |
| 1029 | |
| 1030 | |
| 1031 | LUA_API int lua_status (lua_State *L) { |