mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpiutil] StackTrace: Add ability to override default implementation (#3951)
This commit is contained in:
@@ -16,6 +16,20 @@ namespace wpi {
|
||||
*/
|
||||
std::string GetStackTrace(int offset);
|
||||
|
||||
/**
|
||||
* The default implementation used for GetStackTrace().
|
||||
*
|
||||
* @param offset The number of symbols at the top of the stack to ignore
|
||||
*/
|
||||
std::string GetStackTraceDefault(int offset);
|
||||
|
||||
/**
|
||||
* Set the implementation used by GetStackTrace().
|
||||
*
|
||||
* @param func Function called by GetStackTrace().
|
||||
*/
|
||||
void SetGetStackTraceImpl(std::string (*func)(int offset));
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_STACKTRACE_H_
|
||||
|
||||
Reference in New Issue
Block a user