Skip to content

Commit

Permalink
Don't rename functions marked as extern
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Feb 12, 2024
1 parent 2cfe407 commit 9bbab58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public JassFunctionOrNative getJassFuncFor(ImFunction func) {
} else {
String name = func.getName();
// find a unique name, but keep special names 'main' and 'config'
if (!name.equals("main") && !name.equals("config")) {
if (!name.equals("main") && !name.equals("config") && !func.hasFlag(FunctionFlagEnum.IS_EXTERN)) {
name = getUniqueGlobalName(func.getName());
}
boolean isCompiletimeNative = func.hasFlag(FunctionFlagEnum.IS_COMPILETIME_NATIVE);
Expand Down

0 comments on commit 9bbab58

Please sign in to comment.