VirtualBox

Changeset 72686 in vbox for trunk/include


Ignore:
Timestamp:
Jun 26, 2018 1:50:12 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123203
Message:

vmm/dbgftrace.h: Added DBGFTRACE_CUSTOM. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/dbgftrace.h

    r69107 r72686  
    7474#endif
    7575
     76#ifdef RT_COMPILER_SUPPORTS_VA_ARGS
     77/**
     78 * Add a custom string (req. variadict macro support).
     79 */
     80# ifdef DBGFTRACE_ENABLED
     81#  define DBGFTRACE_CUSTOM(a_pVM, ...) \
     82     do { RTTraceBufAddMsgF((a_pVM)->CTX_SUFF(hTraceBuf), __VA_ARGS__); } while (0)
     83# else
     84#  define DBGFTRACE_CUSTOM(a_pVM, ...) do { } while (0)
     85# endif
     86#endif
     87
    7688/**
    7789 * Records the current source position.
     
    96108
    97109
    98 /** @name Tracing Macors for PDM Devices, Drivers and USB Devices.
     110/** @name Tracing Macros for PDM Devices, Drivers and USB Devices.
    99111 * @{
    100112 */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette