| 985 | |
| 986 | |
| 987 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data, int strip) { |
| 988 | int status; |
| 989 | TValue *o; |
| 990 | lua_lock(L); |
| 991 | api_checknelems(L, 1); |
| 992 | o = L->top - 1; |
| 993 | if (isLfunction(o)) |
| 994 | status = luaU_dump(L, getproto(o), writer, data, strip); |
| 995 | else |
| 996 | status = 1; |
| 997 | lua_unlock(L); |
| 998 | return status; |
| 999 | } |
| 1000 | |
| 1001 | |
| 1002 | LUA_API int lua_status (lua_State *L) { |