Hello,
I do a lot of test with version 8049 and !define and I see some possible enhancement:
1) !endif and !else don't like spaces. It is possible to correct it in ifManager.java line 43
protected static final Pattern2 elsePattern = MyPattern.cmpile("^[%s]*!else[%s]*$");
protected static final Pattern2 endifPattern = MyPattern.cmpile("^[%s]*!endif[%s]*$");
2) !else, !definelong and !enddefinelong are not defined in language description
LanguageDescriptor.java line 143
preproc.add("!else");
preproc.add("!definelong");
preproc.add("!enddefinelong");
3) ifndef is not described in the documentation
4) It would be nice to have a !define with the file format output type
For example in Option.java line 84:
public void setFileFormat(FileFormat fileFormat) {
this.fileFormat = fileFormat;
String s = "FILE_FORMAT_" + fileFormat.toString() +"=\"1\"";
manageDefine(s);
}
public Option(String... arg) throws InterruptedException, IOException {
if (arg.length == 0) {
OptionFlags.getInstance().setGui(true);
setFileFormat(FileFormat.PNG);
}