mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -8,12 +8,12 @@
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
static std::atomic<std::string (*)(int offset)> gStackTraceImpl{
|
||||
wpi::GetStackTraceDefault};
|
||||
wpi::util::GetStackTraceDefault};
|
||||
|
||||
std::string wpi::GetStackTrace(int offset) {
|
||||
std::string wpi::util::GetStackTrace(int offset) {
|
||||
return (gStackTraceImpl.load())(offset);
|
||||
}
|
||||
|
||||
void wpi::SetGetStackTraceImpl(std::string (*func)(int offset)) {
|
||||
gStackTraceImpl = func ? func : wpi::GetStackTraceDefault;
|
||||
void wpi::util::SetGetStackTraceImpl(std::string (*func)(int offset)) {
|
||||
gStackTraceImpl = func ? func : wpi::util::GetStackTraceDefault;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user