local fname = dump_fmtstr("/tmp/nethack.%n.%d.log"); */
| 1135 | #ifdef DUMPLOG |
| 1136 | /* local fname = dump_fmtstr("/tmp/nethack.%n.%d.log"); */ |
| 1137 | staticfn int |
| 1138 | nhl_dump_fmtstr(lua_State *L) |
| 1139 | { |
| 1140 | int argc = lua_gettop(L); |
| 1141 | char buf[512]; |
| 1142 | |
| 1143 | if (argc == 1) |
| 1144 | lua_pushstring(L, dump_fmtstr(luaL_checkstring(L, 1), buf, TRUE)); |
| 1145 | else |
| 1146 | nhl_error(L, "Expected a string parameter"); |
| 1147 | return 1; |
| 1148 | } |
| 1149 | #endif /* DUMPLOG */ |
| 1150 | |
| 1151 | /* local dungeon_name = dnum_name(u.dnum); */ |
nothing calls this directly
no test coverage detected