| 2872 | } |
| 2873 | |
| 2874 | void fxReportError(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...) |
| 2875 | { |
| 2876 | c_va_list arguments; |
| 2877 | |
| 2878 | c_va_start(arguments, theFormat); |
| 2879 | fxVReportError(the, thePath, theLine, theFormat, arguments); |
| 2880 | c_va_end(arguments); |
| 2881 | #ifndef mxNoConsole |
| 2882 | if (thePath && theLine) |
| 2883 | #if mxWindows |
| 2884 | printf("%s(%d): error: ", thePath, (int)theLine); |
| 2885 | #else |
| 2886 | c_printf("%s:%d: error: ", thePath, (int)theLine); |
| 2887 | #endif |
| 2888 | else |
| 2889 | c_printf("# error: "); |
| 2890 | c_va_start(arguments, theFormat); |
| 2891 | c_vprintf(theFormat, arguments); |
| 2892 | c_va_end(arguments); |
| 2893 | c_printf("!\n"); |
| 2894 | #endif |
| 2895 | } |
| 2896 | |
| 2897 | void fxReportWarning(txMachine* the, txString thePath, txInteger theLine, txString theFormat, ...) |
| 2898 | { |
nothing calls this directly
no test coverage detected