raddbgi_make: overrideable profile macros; raddbgi_from_pdb: itype name resolution, link anme resolution

This commit is contained in:
Ryan Fleury
2024-02-16 11:18:48 -08:00
parent 5ae9259253
commit a38241ebe0
5 changed files with 90 additions and 32 deletions
+17
View File
@@ -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