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