mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 06:18:42 +00:00
raddbgi_make: overrideable profile macros; raddbgi_from_pdb: itype name resolution, link anme resolution
This commit is contained in:
@@ -189,6 +189,23 @@ struct RDIM_Temp
|
||||
# define rdim_scratch_end rdim_scratch_end_fallback
|
||||
#endif
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Overrideable Profile Markup
|
||||
|
||||
// To override the default profiling markup, do the following:
|
||||
//
|
||||
// #define RDIM_ProfBegin(...) <some expression, like a function call, to begin profiling some zone>
|
||||
// #define RDIM_ProfEnd() <some expression, like a function call, to end profiling some zone>
|
||||
|
||||
#if !defined(RDIM_ProfBegin)
|
||||
# define RDIM_ProfBegin(...) ((void)0)
|
||||
#endif
|
||||
#if !defined(RDIM_ProfEnd)
|
||||
# define RDIM_ProfEnd() ((void)0)
|
||||
#endif
|
||||
|
||||
#define RDIM_ProfScope(...) for(int _i_ = ((RDIM_ProfBegin(__VA_ARGS__)), 0); !_i_; _i_ += 1, (RDIM_ProfEnd()))
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Linked List Helper Macros
|
||||
|
||||
|
||||
Reference in New Issue
Block a user