| 1274 | static std::map<string, CommandHistory> commandHistories; |
| 1275 | |
| 1276 | static CommandHistory * ensureCommandHistory(string id, |
| 1277 | string src_file) { |
| 1278 | if (!commandHistories.count(id)) { |
| 1279 | commandHistories[id].load(src_file.c_str()); |
| 1280 | } |
| 1281 | return &commandHistories[id]; |
| 1282 | } |
| 1283 | |
| 1284 | static int getCommandHistory(lua_State *state) |
| 1285 | { |
no test coverage detected