| 3023 | } |
| 3024 | |
| 3025 | void fxVReportWarning(void* console, txString thePath, txInteger theLine, txString theFormat, c_va_list theArguments) |
| 3026 | { |
| 3027 | #ifdef mxDebug |
| 3028 | txMachine* the = console; |
| 3029 | if (fxIsConnected(the)) { |
| 3030 | fxEchoStart(the); |
| 3031 | fxEcho(the, "<log"); |
| 3032 | fxEchoPathLine(the, thePath, theLine); |
| 3033 | fxEcho(the, "># Warning: "); |
| 3034 | fxEchoFormat(the, theFormat, theArguments); |
| 3035 | fxEcho(the, "!\n</log>"); |
| 3036 | fxEchoStop(the); |
| 3037 | } |
| 3038 | #endif |
| 3039 | #if defined(DEBUG_EFM) |
| 3040 | if (thePath && theLine) |
| 3041 | sprintf(_debugStrBuffer, "%s:%d: warning: ", thePath, (int)theLine); |
| 3042 | else |
| 3043 | sprintf(_debugStrBuffer, "# warning: "); |
| 3044 | vsprintf(_debugStrBuffer, theFormat, theArguments); |
| 3045 | _debugStrBuffer[255] = '\0'; |
| 3046 | #endif |
| 3047 | } |
| 3048 | |
| 3049 | #ifdef mxInstrument |
| 3050 | #if kCPUESP32C6 || kCPUESP32H2 |
no test coverage detected