aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Miles/include/tmapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Windows64/Miles/include/tmapi.h')
-rw-r--r--Minecraft.Client/Windows64/Miles/include/tmapi.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Minecraft.Client/Windows64/Miles/include/tmapi.h b/Minecraft.Client/Windows64/Miles/include/tmapi.h
new file mode 100644
index 00000000..c1b56183
--- /dev/null
+++ b/Minecraft.Client/Windows64/Miles/include/tmapi.h
@@ -0,0 +1,36 @@
+// This is the null header file used to remove Telemetry calls.
+
+#define TMERR_DISABLED 1
+
+#define tmTick(...)
+#define tmPause(...)
+#define tmEnter(...)
+#define tmLeave(...)
+#define tmThreadName(...) TMERR_DISABLED
+#define tmMutexName(...) TMERR_DISABLED
+#define tmTryLock(...) TMERR_DISABLED
+#define tmEndTryLock(...)
+#define tmSetMutexState(...)
+#define tmAlloc(...)
+#define tmRealloc(...)
+#define tmFree(...)
+#define tmPlot(...)
+#define tmBlob(...) TMERR_DISABLED
+#define tmBlobEx(...) TMERR_DISABLED
+#define tmMessage(...)
+#define tmEmitAccumulationZones(...) TMERR_DISABLED
+#define tmEnterAccumulationZone(...) TMERR_DISABLED
+#define tmLeaveAccumulationZone(...) TMERR_DISABLED
+#define tmZone(...)
+#define tmSetLockState(...)
+#define tmLockName(...)
+#define tmSendCallStack(...)
+#define tmAllocEx(...)
+
+#define NTELEMETRY 1
+
+#define TM_CONTEXT_LITE(val) ((char*)(val))
+#define TM_CONTEXT_FULL(val) ((char*)(val))
+
+typedef char *HTELEMETRY;
+