diff options
Diffstat (limited to 'source/core/slang-platform.h')
| -rw-r--r-- | source/core/slang-platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/slang-platform.h b/source/core/slang-platform.h index 0b97aca6d..04559cbcf 100644 --- a/source/core/slang-platform.h +++ b/source/core/slang-platform.h @@ -150,6 +150,10 @@ struct PlatformUtil /// @param text Text to be displayed in 'debugger output' /// @return SLANG_E_NOT_AVAILABLE if not on this platform, and potentially other errors static SlangResult outputDebugMessage(const char* text); + + /// Print a stack trace to stderr for debugging purposes. + /// Only available on Linux family platforms. + static void backtrace(); }; #ifndef _MSC_VER |
