Dan Korostelev vor 8 Jahren
Ursprung
Commit
64b8618452
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      std/haxe/macro/Context.hx

+ 3 - 3
std/haxe/macro/Context.hx

@@ -38,7 +38,7 @@ import haxe.macro.Type.TypedExpr;
 #if !neko @:noDoc #end
 class Context {
 
-#if (neko || eval)
+#if (neko || eval || display)
 	/**
 		Displays a compilation error `msg` at the given `Position` `pos`
 		and aborts the current macro call.
@@ -517,8 +517,8 @@ class Context {
 	}
 
 	/**
-		Types expression `e`, stores the resulting typed expression internally and 
-		returns a syntax-level expression that can be returned from a macro and 
+		Types expression `e`, stores the resulting typed expression internally and
+		returns a syntax-level expression that can be returned from a macro and
 		will be replaced by the stored typed expression.
 
 		If `e` is null or invalid, an exception is thrown.