Explorar el Código

Make 'exists' functions not inline

hughsando hace 11 años
padre
commit
eb699ec4c5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      std/cpp/_std/haxe/ds/ObjectMap.hx
  2. 1 1
      std/cpp/_std/sys/FileSystem.hx

+ 1 - 1
std/cpp/_std/haxe/ds/ObjectMap.hx

@@ -41,7 +41,7 @@ class ObjectMap<K:{},V> implements Map.IMap<K,V> {
 		return __Internal.get( untyped __global__.__hxcpp_obj_id(key) );
 	}
 
-	public inline function exists( key : K ) : Bool {
+	public function exists( key : K ) : Bool {
 		return __Internal.exists( untyped __global__.__hxcpp_obj_id(key) );
 	}
 

+ 1 - 1
std/cpp/_std/sys/FileSystem.hx

@@ -30,7 +30,7 @@ private enum FileKind {
 @:coreApi
 class FileSystem {
 
-	public static inline function exists( path : String ) : Bool {
+	public static function exists( path : String ) : Bool {
 		return sys_exists(haxe.io.Path.removeTrailingSlashes(path));
 	}