Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/DeviceRTL/include/Debug.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
#define PRINT(str) | #define PRINT(str) | ||||
#endif | #endif | ||||
///} | ///} | ||||
/// Enter a debugging scope for performing function traces. Enabled with | /// Enter a debugging scope for performing function traces. Enabled with | ||||
/// FunctionTracting set in the debug kind. | /// FunctionTracting set in the debug kind. | ||||
#define FunctionTracingRAII() \ | #define FunctionTracingRAII() \ | ||||
DebugEntryRAII Entry(__LINE__, __PRETTY_FUNCTION__); | DebugEntryRAII Entry(__FILE__, __LINE__, __PRETTY_FUNCTION__); | ||||
/// An RAII class for handling entries to debug locations. The current location | /// An RAII class for handling entries to debug locations. The current location | ||||
/// and function will be printed on entry. Nested levels increase the | /// and function will be printed on entry. Nested levels increase the | ||||
/// indentation shown in the debugging output. | /// indentation shown in the debugging output. | ||||
struct DebugEntryRAII { | struct DebugEntryRAII { | ||||
DebugEntryRAII(const unsigned Line, const char *Function); | DebugEntryRAII(const char *File, const unsigned Line, const char *Function); | ||||
~DebugEntryRAII(); | ~DebugEntryRAII(); | ||||
}; | }; | ||||
#endif | #endif |