mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-17 16:37:57 -05:00
Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.
This commit is contained in:
@ -369,14 +369,14 @@ private:
|
||||
|
||||
StorageType storage;
|
||||
ResultCode result_code;
|
||||
#if _DEBUG
|
||||
#ifdef _DEBUG
|
||||
// The purpose of this pointer is to aid inspecting the type with a debugger, eliminating the
|
||||
// need to cast `storage` to a pointer or pay attention to `result_code`.
|
||||
const T* debug_ptr;
|
||||
#endif
|
||||
|
||||
void UpdateDebugPtr() {
|
||||
#if _DEBUG
|
||||
#ifdef _DEBUG
|
||||
debug_ptr = empty() ? nullptr : static_cast<const T*>(static_cast<const void*>(&storage));
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user