Files
beerpsi_chuniio-brokenithm/util/dprintf.h
T
beerpsi f101a07bb2 Refactor + AimeIO
- No more global state, every connection has their own context
- Split off server implementations into their own files
- Added Brokenithm AimeIO so users don't have to scour their own files
2023-12-31 13:12:07 +07:00

31 lines
538 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include <stddef.h>
#ifdef __GNUC__
#define DPRINTF_CHK __attribute__(( format(printf, 1, 2) ))
#else
#define DPRINTF_CHK
#endif
#ifndef NDEBUG
void dprintf(const char *fmt, ...) DPRINTF_CHK;
void dprintfv(const char *fmt, va_list ap);
void dwprintf(const wchar_t *fmt, ...);
void dwprintfv(const wchar_t *fmt, va_list ap);
#else
#define dprintf(...)
#define dprintfv(fmt, ap)
#define dwprintf(...)
#define dwprintfv(fmt, ap)
#endif
#ifdef __cplusplus
}
#endif