| 1158 | }); |
| 1159 | } |
| 1160 | static QiVar getSavedVariable(const std::string name) |
| 1161 | { |
| 1162 | if (!initMutex) { ScriptException(ScriptException::error_interpreter_not_init, {}, {}); } |
| 1163 | else if (initMutex == INVALID_HANDLE_VALUE) { ScriptException(ScriptException::error_interpreter_exited, {}, {}); } |
| 1164 | typepack::value v; |
| 1165 | { |
| 1166 | std::unique_lock<std::mutex> lock(savedVariables_Mutex); |
| 1167 | auto i = savedVariables.find(name); |
| 1168 | if (i != savedVariables.end()) v = i->second; |
| 1169 | } |
no test coverage detected