2 #include <xray/xray_interface.h>
6 extern std::atomic<void (*)(int32_t, XRayEntryType)> XRayPatchedFunction;
8 // Implement this in C++ instead of assembly, to avoid dealing with ToC by hand.
9 void CallXRayPatchedFunction(int32_t FuncId, XRayEntryType Type) {
10 auto fptr = __xray::XRayPatchedFunction.load();
12 (*fptr)(FuncId, Type);