< prev index next >

src/jdk.jextract/share/classes/com/sun/tools/jextract/JavaSourceFactoryExt.java

Print this page

        

*** 128,138 **** public Boolean visitMacro(MacroTree macroTree, JType jt) { if (super.visitMacro(macroTree, jt)) { String name = macroTree.name(); MacroParser.Macro macro = macroTree.macro().get(); log.print(Level.FINE, () -> "Adding macro " + name); ! addConstant(header_jsb, name, macro.type(), macro.value()); return true; } else { return false; } } --- 128,138 ---- public Boolean visitMacro(MacroTree macroTree, JType jt) { if (super.visitMacro(macroTree, jt)) { String name = macroTree.name(); MacroParser.Macro macro = macroTree.macro().get(); log.print(Level.FINE, () -> "Adding macro " + name); ! addConstant(header_jsb, Utils.toMacroName(name), macro.type(), macro.value()); return true; } else { return false; } }
< prev index next >