| 2849 | } |
| 2850 | |
| 2851 | void fxReportException(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...) |
| 2852 | { |
| 2853 | c_va_list arguments; |
| 2854 | |
| 2855 | c_va_start(arguments, theFormat); |
| 2856 | fxVReportException(the, thePath, theLine, theFormat, arguments); |
| 2857 | c_va_end(arguments); |
| 2858 | #ifndef mxNoConsole |
| 2859 | if (thePath && theLine) |
| 2860 | #if mxWindows |
| 2861 | printf("%s(%d): exception: ", thePath, (int)theLine); |
| 2862 | #else |
| 2863 | c_printf("%s:%d: exception: ", thePath, (int)theLine); |
| 2864 | #endif |
| 2865 | else |
| 2866 | c_printf("# exception: "); |
| 2867 | c_va_start(arguments, theFormat); |
| 2868 | c_vprintf(theFormat, arguments); |
| 2869 | c_va_end(arguments); |
| 2870 | c_printf("!\n"); |
| 2871 | #endif |
| 2872 | } |
| 2873 | |
| 2874 | void fxReportError(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...) |
| 2875 | { |
no test coverage detected