libdragon
Loading...
Searching...
No Matches
include
debugcpp.h
Go to the documentation of this file.
1
7
#ifndef __LIBDRAGON_DEBUGCPP_H
8
#define __LIBDRAGON_DEBUGCPP_H
9
10
#if defined(__cplusplus) && !defined(NDEBUG)
11
// We need to run some initialization code only in case libdragon is compiled from
12
// a C++ program. So we hook a few common initialization functions and run our code.
13
// C programs are not affected and the C++-related code will be unused and stripped by the linker.
15
void
__debug_init_cpp
(
void
);
16
17
#define console_init() ({ __debug_init_cpp(); console_init(); })
18
#define dfs_init(a) ({ __debug_init_cpp(); dfs_init(a);})
19
#define joypad_init() ({ __debug_init_cpp(); joypad_init(); })
20
#define timer_init() ({ __debug_init_cpp(); timer_init(); })
21
#define display_init(a,b,c,d,e) ({ __debug_init_cpp(); display_init(a,b,c,d,e); })
22
#define debug_init_isviewer() ({ __debug_init_cpp(); debug_init_isviewer(); })
23
#define debug_init_usblog() ({ __debug_init_cpp(); debug_init_usblog(); })
25
#endif
26
27
#endif
__debug_init_cpp
void __debug_init_cpp(void)
Initialize debug support for C++ programs.
Definition
debugcpp.cpp:44
Generated on Mon Aug 4 2025 07:24:05 for libdragon by
1.9.8