Better Haxe 4.3 extern enum abstract

Previous attempt tried to use @:extern and @:enum for Haxe 3, but enum is fine for both, which is actually what we were using before. Keep @:extern for Haxe 3, but use enum for both
This commit is contained in:
Josh Tynjala
2023-06-05 15:56:26 -07:00
parent 0918ee2381
commit 9ca9c2e32c
34 changed files with 34 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
package flash.desktop;
@:native("flash.desktop.InvokeEventReason")
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract InvokeEventReason(String)
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract InvokeEventReason(String)
{
var LOGIN;
var NOTIFICATION;

View File

@@ -1,7 +1,7 @@
package flash.desktop;
@:native("flash.desktop.NativeDragActions")
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NativeDragActions(String)
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NativeDragActions(String)
{
var COPY;
var LINK;

View File

@@ -1,7 +1,7 @@
package flash.desktop;
@:native("flash.desktop.NotificationType")
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NotificationType(String)
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NotificationType(String)
{
var CRITICAL;
var INFORMATIONAL;

View File

@@ -1,7 +1,7 @@
package flash.desktop;
@:native("flash.desktop.SystemIdleMode")
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract SystemIdleMode(String)
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract SystemIdleMode(String)
{
var KEEP_AWAKE;
var NORMAL;