From 51c9f861b3a7bbaeb777fa1892c467531e44a07c Mon Sep 17 00:00:00 2001 From: player-03 Date: Tue, 1 Aug 2023 13:44:18 -0400 Subject: [PATCH] Use `enum abstract` in Haxe 4. Most of these warnings were fixed by merging the develop branch, but WorkOutput.hx is new in 8.2.0. --- src/lime/system/WorkOutput.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lime/system/WorkOutput.hx b/src/lime/system/WorkOutput.hx index 4205068fa6..433fad10e3 100644 --- a/src/lime/system/WorkOutput.hx +++ b/src/lime/system/WorkOutput.hx @@ -204,7 +204,7 @@ class WorkOutput } } -@:enum abstract ThreadMode(Bool) +#if haxe4 enum #else @:enum #end abstract ThreadMode(Bool) { /** All work will be done on the main thread, during `Application.onUpdate`. @@ -341,7 +341,7 @@ class JobData } } -@:enum abstract ThreadEventType(String) +#if haxe4 enum #else @:enum #end abstract ThreadEventType(String) { /** Sent by the background thread, indicating completion.