aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/result.h
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2015-01-10 13:07:50 -0800
committerGravatar archshift <admin@archshift.com>2015-01-10 14:32:10 -0800
commit228843c43e21ce4d3ca5fe0adc96fcb34505446b (patch)
treeb965681736fca204e49ea6f2c130409814c3006a /src/core/hle/result.h
parent083072de56dacadbeba5f77b2773ea6f9e4b1ddd (diff)
Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.
Diffstat (limited to 'src/core/hle/result.h')
-rw-r--r--src/core/hle/result.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 0e9c213e..82dcf5bb 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -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
}