| 1108 | |
| 1109 | |
| 1110 | LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data, int strip) { |
| 1111 | int status; |
| 1112 | TValue *o; |
| 1113 | lua_lock(L); |
| 1114 | api_checknelems(L, 1); |
| 1115 | o = s2v(L->top.p - 1); |
| 1116 | if (isLfunction(o)) |
| 1117 | status = luaU_dump(L, getproto(o), writer, data, strip); |
| 1118 | else |
| 1119 | status = 1; |
| 1120 | lua_unlock(L); |
| 1121 | return status; |
| 1122 | } |
| 1123 | |
| 1124 | |
| 1125 | LUA_API int lua_status (lua_State *L) { |