| 103 | }; |
| 104 | |
| 105 | static const char *FormatScriptError(ScriptError_t err) |
| 106 | { |
| 107 | for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i) |
| 108 | if (script_errors[i].err == err) |
| 109 | return script_errors[i].name; |
| 110 | BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp."); |
| 111 | return ""; |
| 112 | } |
| 113 | |
| 114 | static ScriptError_t ParseScriptError(const std::string &name) |
| 115 | { |