Install a Void::Stacktrace crash handler at plugin init

ts3plugin_init() sets a std::terminate handler that captures and prints a
symbolized stack trace (with source snippets) before aborting — useful for
diagnosing crashes in the hot-reloadable plugin. Link Void::Stacktrace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 4.8 committed 2026-06-22 21:27:00 +03:00
1 parent df1ea8d53f
commit 7c58af92cd
2 files changed
+18 -1

No files matched your search

+2 -1
View File
@@ -31,13 +31,14 @@ target_compile_definitions(EchoionPlugin PUBLIC PLUGIN=1)
# - ApiOpaque (OpaqueHandle for type-safe void*)
# - ApiPluginInterface (IPluginInterface to implement)
# - ApiCoreInterface (ICoreInterface to call Core - decoupled)
target_link_libraries(EchoionPlugin PRIVATE
target_link_libraries(EchoionPlugin PRIVATE
Echoion::ApiBase
Echoion::ApiPlugin
Echoion::ApiOpaque
Echoion::ApiPluginInterface
Echoion::ApiLogger
Echoion::ApiCoreInterface
Void::Stacktrace
)
find_package(dylib CONFIG REQUIRED)