| 63 | } |
| 64 | |
| 65 | const char* omError2Serror(omError_t error) |
| 66 | { |
| 67 | int i = 0; |
| 68 | while (! (om_ErrorStrings[i].string == NULL && om_ErrorStrings[i].error == omError_MaxError)) |
| 69 | { |
| 70 | if (om_ErrorStrings[i].error == error) return om_ErrorStrings[i].s_error; |
| 71 | i++; |
| 72 | } |
| 73 | return "omError_UnKnown"; |
| 74 | } |
| 75 | |
| 76 | #ifndef OM_NDEBUG |
| 77 | int om_CallErrorHook = 1; |
no outgoing calls