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
// #define MINI_DRIVER
9
10
#ifndef MINI_DRIVER
11
#define M_PRINTF(format, args...) printf("BDM: " format, ##args)
12
#else
13
#define M_PRINTF(format, args...) \
14
do { \
15
} while (0)
16
#endif
17
18
#ifdef DEBUG
19
#define M_DEBUG M_PRINTF
20
#else
21
#define M_DEBUG(format, args...) \
22
do { \
23
} while (0)
24
#endif
25
26
// u64 when being used in a printf statement is split into two u32 values
27
#define U64_2XU32(val) \
28
u32 val##_u32[2]; \
29
memcpy(val##_u32, &val, sizeof(val##_u32))
30
31
#ifdef DEBUG
32
#define DEBUG_U64_2XU32(val) U64_2XU32(val)
33
#else
34
#define DEBUG_U64_2XU32(val) do { } while (0)
35
#endif
36
37
#endif
core
bdm
src
include
module_debug.h
Generated by
1.18.0