From c00589c189abe880618ecd660754de2de2796be5 Mon Sep 17 00:00:00 2001 From: player-03 Date: Sat, 15 Apr 2023 20:29:33 -0400 Subject: [PATCH] Use original `haxe.Timer` in macros. During macros, `System.getTimer()` falls through to `Sys.time()`, which is the same thing the original `haxe.Timer` uses. Therefore this change produces the same behavior but reduces the number of classes imported, which may help prevent errors. --- src/haxe/Timer.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haxe/Timer.hx b/src/haxe/Timer.hx index 47644992f..1b80cf5ed 100644 --- a/src/haxe/Timer.hx +++ b/src/haxe/Timer.hx @@ -1,6 +1,6 @@ package haxe; -#if !lime_cffi +#if (!lime_cffi || macro) // Original haxe.Timer class /*