|
@@ -28,12 +28,12 @@ class Sys {
|
|
|
private static var _env:haxe.ds.StringMap<String>;
|
|
|
private static var _args:Array<String>;
|
|
|
|
|
|
- public static function print( v : Dynamic ) : Void
|
|
|
+ public static inline function print( v : Dynamic ) : Void
|
|
|
{
|
|
|
cs.system.Console.Write(v);
|
|
|
}
|
|
|
|
|
|
- public static function println( v : Dynamic ) : Void
|
|
|
+ public static inline function println( v : Dynamic ) : Void
|
|
|
{
|
|
|
cs.system.Console.WriteLine(v);
|
|
|
}
|
|
@@ -49,7 +49,7 @@ class Sys {
|
|
|
return _args.copy();
|
|
|
}
|
|
|
|
|
|
- public static function getEnv( s : String ) : String
|
|
|
+ public static inline function getEnv( s : String ) : String
|
|
|
{
|
|
|
return Environment.GetEnvironmentVariable(s);
|
|
|
}
|
|
@@ -76,7 +76,7 @@ class Sys {
|
|
|
return _env;
|
|
|
}
|
|
|
|
|
|
- public static function sleep( seconds : Float ) : Void
|
|
|
+ public static inline function sleep( seconds : Float ) : Void
|
|
|
{
|
|
|
Thread.Sleep( Std.int(seconds * 1000) );
|
|
|
}
|
|
@@ -87,12 +87,12 @@ class Sys {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- public static function getCwd() : String
|
|
|
+ public static inline function getCwd() : String
|
|
|
{
|
|
|
return cs.system.io.Directory.GetCurrentDirectory();
|
|
|
}
|
|
|
|
|
|
- public static function setCwd( s : String ) : Void
|
|
|
+ public static inline function setCwd( s : String ) : Void
|
|
|
{
|
|
|
cs.system.io.Directory.SetCurrentDirectory(s);
|
|
|
}
|
|
@@ -122,7 +122,7 @@ class Sys {
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- public static function exit( code : Int ) : Void
|
|
|
+ public static inline function exit( code : Int ) : Void
|
|
|
{
|
|
|
Environment.Exit(code);
|
|
|
}
|
|
@@ -132,7 +132,7 @@ class Sys {
|
|
|
return Date.now().getTime() / 1000;
|
|
|
}
|
|
|
|
|
|
- public static function cpuTime() : Float
|
|
|
+ public static inline function cpuTime() : Float
|
|
|
{
|
|
|
return Environment.TickCount / 1000;
|
|
|
}
|
|
@@ -151,7 +151,7 @@ class Sys {
|
|
|
#end
|
|
|
}
|
|
|
|
|
|
- public static function stdin() : haxe.io.Input
|
|
|
+ public static inline function stdin() : haxe.io.Input
|
|
|
{
|
|
|
#if !(Xbox || CF || MF)
|
|
|
return new cs.io.NativeInput(cs.system.Console.OpenStandardInput());
|
|
@@ -160,7 +160,7 @@ class Sys {
|
|
|
#end
|
|
|
}
|
|
|
|
|
|
- public static function stdout() : haxe.io.Output
|
|
|
+ public static inline function stdout() : haxe.io.Output
|
|
|
{
|
|
|
#if !(Xbox || CF || MF)
|
|
|
return new cs.io.NativeOutput(cs.system.Console.OpenStandardOutput());
|
|
@@ -169,7 +169,7 @@ class Sys {
|
|
|
#end
|
|
|
}
|
|
|
|
|
|
- public static function stderr() : haxe.io.Output
|
|
|
+ public static inline function stderr() : haxe.io.Output
|
|
|
{
|
|
|
#if !(Xbox || CF || MF)
|
|
|
return new cs.io.NativeOutput(cs.system.Console.OpenStandardError());
|