mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-06 01:41:15 -05:00
33 lines
682 B
C
33 lines
682 B
C
#pragma once
|
|
|
|
/*
|
|
* wut 1.0.0-beta
|
|
*
|
|
* https://github.com/devkitPro/wut
|
|
*/
|
|
|
|
#if defined(__GNUC__) || defined(__clang__)
|
|
|
|
#define WUT_DEPRECATED(reason) __attribute__((__deprecated__(reason)))
|
|
#define WUT_FORMAT_PRINTF(fmt, args) __attribute__((__format__(__printf__, fmt, args)))
|
|
|
|
#else // not __GNUC__ and not __clang__
|
|
|
|
#define WUT_DEPRECATED(reason)
|
|
#define WUT_FORMAT_PRINTF(fmt, args)
|
|
|
|
#endif //__GNUC__ or __clang__
|
|
|
|
#ifdef DEBUG
|
|
#define WUT_DEBUG_REPORT(fmt, ...) OSReport(fmt, ##__VA_ARGS__)
|
|
#else
|
|
#define WUT_DEBUG_REPORT(fmt, ...)
|
|
#endif
|
|
|
|
#include "wut_structsize.h"
|
|
#include "wut_types.h"
|
|
#include "wut_rplwrap.h"
|
|
#ifdef DEBUG
|
|
#include <coreinit/debug.h>
|
|
#endif
|