Skip to content

Commit

Permalink
Use enum abstract in Haxe 4.
Browse files Browse the repository at this point in the history
Most of these warnings were fixed by merging the develop branch, but WorkOutput.hx is new in 8.2.0.
  • Loading branch information
player-03 committed Aug 1, 2023
1 parent c1cf271 commit 51c9f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lime/system/WorkOutput.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 51c9f86

Please sign in to comment.