mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2024-11-28 19:10:49 +01:00
23 lines
469 B
C
23 lines
469 B
C
|
#pragma once
|
||
|
|
||
|
#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
|