Skip to content

Commit ddf922f

Browse files
author
Aidan Lee
committed
Don't include telemetry header unless telemetry is defined
All uses of this headers functions are already guarded behind that define. It has a surprising time cost due to std::vector.
1 parent a62caf6 commit ddf922f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

include/hx/Telemetry.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#define HX_TELEMETRY_VERSION 1
55

6-
#include <hxcpp.h>
76
#include <vector>
87

98
struct TelemetryFrame

include/hxcpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ typedef PropertyAccessMode PropertyAccess;
346346
#include <hx/Class.h>
347347
#include "Enum.h"
348348
#include <hx/Interface.h>
349+
#ifdef HXCPP_TELEMETRY
349350
#include <hx/Telemetry.h>
351+
#endif
350352
#if defined(__OBJC__) && defined(HXCPP_OBJC)
351353
#include <hx/ObjcHelpers.h>
352354
#endif

0 commit comments

Comments
 (0)