mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
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
|