unauthorizedAccept option
[dyskinesia.git] / src / dlogf.h
blob95a12edf3db940f7556e6917e8ebb2ff3875f886
1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
9 */
10 #ifndef DLOGF_H
11 #define DLOGF_H
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
18 #include <stdarg.h>
21 //#define NO_DEBUG_LOG
23 /* defaults: write to file; write to stderr */
25 #ifndef NO_DEBUG_LOG
27 * close log file, shutdown logger
29 void dlogfDeinit (void);
32 * set output file name for log
33 * NULL: no file output
35 void dlogfSetFile (const char *fname);
36 void dlogfSetStdErr (int doIt);
38 void dlogf (const char *fmt, ...) __attribute__((format(printf, 1, 2)));
39 void dlogfVA (const char *fmt, va_list ap);
40 #else
41 #define dlogf(...)
42 #define dlogfVA(...)
43 #define dlogfDeinit()
44 #define dlogfSetFile(fname)
45 #define dlogfSetStdErr(doIt)
46 #endif
49 #ifdef __cplusplus
51 #endif
54 #endif