* Prints a warning message * * @param fmt C format string followed by additional arguments */
| 284 | * @param fmt C format string followed by additional arguments |
| 285 | */ |
| 286 | void pwarning(int level, const char* fmt, ...) { |
| 287 | if (g_warn < level) { |
| 288 | return; |
| 289 | } |
| 290 | va_list args; |
| 291 | printf("[WARNING:%s:%d] ", g_curpath.c_str(), yylineno); |
| 292 | va_start(args, fmt); |
| 293 | vprintf(fmt, args); |
| 294 | va_end(args); |
| 295 | printf("\n"); |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Prints a failure message and exits |
no outgoing calls
no test coverage detected