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.
This commit is contained in:
player-03
2023-08-01 13:44:18 -04:00
committed by GitHub
parent c1cf271e71
commit 51c9f861b3

View File

@@ -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.