IsDebugOnlyLoaded

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.

labelname
Optional label to jump to if debug-only segments are not loaded. If omitted, this macro sets flags as described above.

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:
 

See Also

Debug_Test_Valid_Handle