sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
module_debug.h
Go to the documentation of this file.
1
5
#ifndef _MODULE_DEBUG_H
6
#define _MODULE_DEBUG_H
7
8
9
#define M_PRINTF(format, args...) printf("FatFs: " format, ##args)
10
11
#ifdef DEBUG
12
#define M_DEBUG M_PRINTF
13
#else
14
#define M_DEBUG(format, args...)
15
#endif
16
17
// u64 when being used in a printf statement is split into two u32 values
18
#define U64_2XU32(val) \
19
u32 val##_u32[2]; \
20
memcpy(val##_u32, &val, sizeof(val##_u32))
21
22
#ifdef DEBUG
23
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
24
#else
25
#define DEBUG_U64_2XU32(val) do { } while (0)
26
#endif
27
28
#endif
core
bdmfs_fatfs
src
include
module_debug.h
Generated by
1.18.0