| 113 | }; |
| 114 | |
| 115 | const char *FormatScriptError(ScriptError_t err) |
| 116 | { |
| 117 | for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i) |
| 118 | if (script_errors[i].err == err) |
| 119 | return script_errors[i].name; |
| 120 | BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp."); |
| 121 | return ""; |
| 122 | } |
| 123 | |
| 124 | ScriptError_t ParseScriptError(const std::string &name) |
| 125 | { |