Skip to content

Commit

Permalink
lua: only add natives and bj functions if not defined yet
Browse files Browse the repository at this point in the history
  • Loading branch information
peq committed Apr 29, 2019
1 parent cce953c commit 1d56455
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -279,7 +279,7 @@ private void translateFunc(ImFunction f) {
translateStatements(lf.getBody(), f.getBody());
}

if (f.isExtern()) {
if (f.isExtern() || f.isNative() ||f.isBj()) {
// only add the function if it is not yet defined:
String name = lf.getName();
luaModel.add(LuaAst.LuaIf(
Expand Down

0 comments on commit 1d56455

Please sign in to comment.