| 205 | } |
| 206 | |
| 207 | int DFHack::Lua::PushPosXY(lua_State *state, const df::coord2d &pos) |
| 208 | { |
| 209 | if (!pos.isValid()) |
| 210 | { |
| 211 | lua_pushnil(state); |
| 212 | return 1; |
| 213 | } |
| 214 | else |
| 215 | { |
| 216 | lua_pushinteger(state, pos.x); |
| 217 | lua_pushinteger(state, pos.y); |
| 218 | return 2; |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | /* |
| 223 | * Public DF object reference handling API |
nothing calls this directly
no test coverage detected