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