include debug.inc
IsDebugOnlyLoaded
IsDebugOnlyLoaded labelname
Skips to the named label if debug-only segments are not loaded. Yes, this macro's name is backwards.
This macro must be used whenever code that is unconditionally loaded calls into code or accesses memory in debug-only segments, lest you accidentally access objects that don't exist. Example:
IsDebugOnlyLoaded notracing
call Tracing ; the Tracing procedure resides in a debug-only segment
notracing:
Debug_Test_Valid_Handle