Skip to content

Commit

Permalink
[std] remove more special #if display cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Mar 19, 2024
1 parent 163d776 commit 9267e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/haxe/macro/ExampleJSGenerator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class ExampleJSGenerator {
sys.io.File.saveContent(api.outputFile, buf.toString());
}

#if (macro || display)
#if macro
public static function use() {
Compiler.setCustomJSGenerator(function(api) new ExampleJSGenerator(api).generate());
}
Expand Down
2 changes: 1 addition & 1 deletion std/haxe/macro/Format.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import haxe.macro.Context;
The actual macro implemented for Std.format
**/
class Format {
#if (macro || display)
#if macro
public static function format(estr:Expr) {
var str = switch (estr.expr) {
case EConst(c): switch (c) {
Expand Down

0 comments on commit 9267e78

Please sign in to comment.