From 38c5df0c376da0aaca63a4fcc04c0d5d86bf960e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Sun, 27 Oct 2024 02:11:01 +0100 Subject: [PATCH] Code formatting --- src/nwjs/Platform.hx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/nwjs/Platform.hx b/src/nwjs/Platform.hx index 110e0cf..7713519 100644 --- a/src/nwjs/Platform.hx +++ b/src/nwjs/Platform.hx @@ -1,11 +1,5 @@ package nwjs; -#if macro -import haxe.Json; -import haxe.macro.Context; -import sys.io.File; -#end - /** Information about the environment in which the current program is running. **/ abstract class Platform { @@ -26,13 +20,13 @@ abstract class Platform { /** Gets the name of the Haxe compilation target. **/ macro static function getHaxeTarget() - return macro $v{Context.definedValue("target.name")}; + return macro $v{haxe.macro.Context.definedValue("target.name")}; /** Gets the version number of the Haxe compiler. **/ macro static function getHaxeVersion() - return macro $v{Context.definedValue("haxe")}; + return macro $v{haxe.macro.Context.definedValue("haxe")}; /** Gets the package version of this program. **/ macro static function getPackageVersion() - return macro $v{Json.parse(File.getContent("haxelib.json")).version}; + return macro $v{haxe.Json.parse(sys.io.File.getContent("haxelib.json")).version}; }