summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-04-19 21:58:26 -0700
committerJan Kotas <jkotas@microsoft.com>2016-04-19 21:58:26 -0700
commit0eff733cd407e0d5fbabedbf0d7dc19d357595c5 (patch)
tree02ceea33845d4687ac909edaccae96d89d37d8a5 /src/vm
parentf1e5b8c80ff74ebd719140b7d73747a62238698a (diff)
parent5c6abe0694a33c245680ec48d36e1fc031798250 (diff)
downloadcoreclr-0eff733cd407e0d5fbabedbf0d7dc19d357595c5.tar.gz
coreclr-0eff733cd407e0d5fbabedbf0d7dc19d357595c5.tar.bz2
coreclr-0eff733cd407e0d5fbabedbf0d7dc19d357595c5.zip
Merge pull request #3879 from manu-silicon/xplat
Enable XplatEventLogger on all non-Windows platforms
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/eventtracepriv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vm/eventtracepriv.h b/src/vm/eventtracepriv.h
index 6b2a266728..0689665851 100644
--- a/src/vm/eventtracepriv.h
+++ b/src/vm/eventtracepriv.h
@@ -412,9 +412,13 @@ private:
class XplatEventSourceLogger
{
public:
+#ifdef FEATURE_EVENT_TRACE
static void QCALLTYPE LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload);
-
static BOOL QCALLTYPE IsEventSourceLoggingEnabled();
+#else
+ static void QCALLTYPE LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload) {}
+ static BOOL QCALLTYPE IsEventSourceLoggingEnabled() { return false; }
+#endif
};
#endif //defined(FEATURE_EVENTSOURCE_XPLAT)