浏览代码

don't use console in cpp

Nicolas Cannasse 11 年之前
父节点
当前提交
3642853c8a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      h3d/impl/GlDriver.hx

+ 4 - 0
h3d/impl/GlDriver.hx

@@ -91,7 +91,11 @@ class GlDriver extends Driver {
 	}
 
 	override function logImpl( str : String ) {
+		#if js
 		untyped console.log(str);
+		#else
+		Sys.println(str);
+		#end
 	}
 
 	override function begin(frame) {