Jelajahi Sumber

[python] inline Lib.dictAsAnon

Dan Korostelev 8 tahun lalu
induk
melakukan
7d023c11cf
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      std/python/Lib.hx

+ 3 - 3
std/python/Lib.hx

@@ -28,8 +28,8 @@ import python.NativeStringTools;
 typedef PySys = python.lib.Sys;
 
 /**
-	Platform-specific Python Library. Provides some platform-specific functions 
-	for the Python target, such as conversion from Haxe types to native types 
+	Platform-specific Python Library. Provides some platform-specific functions
+	for the Python target, such as conversion from Haxe types to native types
 	and vice-versa.
 **/
 class Lib {
@@ -91,7 +91,7 @@ class Lib {
 	 	Returns the Dictionary `d` as an anonymous Object.
 	 	Modifications to the object are reflected in the Dictionary too.
 	**/
-	public static function dictAsAnon (d:Dict<String, Dynamic>):Dynamic {
+	public static inline function dictAsAnon (d:Dict<String, Dynamic>):Dynamic {
 		return new AnonObject(d);
 	}