1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

Cleanup: remove old DEBUG macro and debug function

This commit is contained in:
rubidium42
2021-06-12 11:21:41 +02:00
committed by rubidium42
parent 55a11710a6
commit 352dbdd570
2 changed files with 1 additions and 28 deletions

View File

@@ -143,24 +143,6 @@ void debug_print(const char *dbg, const char *buf)
}
}
/**
* Output a debug line.
* @note Do not call directly, use the #DEBUG macro instead.
* @param dbg Debug category.
* @param format Text string a la printf, with optional arguments.
*/
void CDECL debug(const char *dbg, const char *format, ...)
{
char buf[1024];
va_list va;
va_start(va, format);
vseprintf(buf, lastof(buf), format, va);
va_end(va);
debug_print(dbg, buf);
}
/**
* Set debugging levels by parsing the text in \a s.
* For setting individual levels a string like \c "net=3,grf=6" should be used.