Browse Source

minor cpp fix (for docgen)

Nicolas Cannasse 16 years ago
parent
commit
ce2c11b109
4 changed files with 5 additions and 4 deletions
  1. 1 1
      std/Date.hx
  2. 2 2
      std/Xml.hx
  3. 1 0
      std/all.hxml
  4. 1 1
      std/haxe/Int32.hx

+ 1 - 1
std/Date.hx

@@ -28,7 +28,7 @@
 	available in the [DateTools] class.
 **/
 
-#if cpp
+#if (cpp && !xmldoc)
 typedef Date = cpp.CppDate__;
 #else
 

+ 2 - 2
std/Xml.hx

@@ -31,7 +31,7 @@
 **/
 
 
-#if cpp
+#if (cpp && !xmldoc)
 typedef XmlType = String;
 typedef Xml = cpp.CppXml__;
 #else
@@ -228,7 +228,7 @@ extern class Xml {
 		Returns a String representation of the Xml node.
 	**/
 	function toString() : String;
-	
+
 #if !php
 	static function __init__() : Void untyped {
 		#if neko

+ 1 - 0
std/all.hxml

@@ -49,6 +49,7 @@ haxe.ImportAll
 -cpp all_cpp
 --no-output
 -xml cpp.xml
+-D xmldoc
 haxe.ImportAll
 
 --next

+ 1 - 1
std/haxe/Int32.hx

@@ -24,7 +24,7 @@
  */
 package haxe;
 
-#if cpp
+#if (cpp && !xmldoc)
 typedef Int32 = cpp.CppInt32__;
 #else