Browse Source

Registrable: fix lua artifacts

pull/1808/head
Deadlocklogic 2 years ago
parent
commit
97110fd21f
  1. 14
      src/Generator/Generators/Registrable/Lua/Sol/LuaSolSources.cs

14
src/Generator/Generators/Registrable/Lua/Sol/LuaSolSources.cs

@ -261,9 +261,6 @@ namespace CppSharp.Generators.Registrable.Lua.Sol
public virtual bool CanGenerateNamespace(Namespace @namespace) public virtual bool CanGenerateNamespace(Namespace @namespace)
{ {
// if not self:isNonTemplateAllowed(context) then
// return true
// end
if (AlreadyVisited(@namespace)) if (AlreadyVisited(@namespace))
{ {
return false; return false;
@ -272,6 +269,10 @@ namespace CppSharp.Generators.Registrable.Lua.Sol
{ {
return false; return false;
} }
else if (!NonTemplateAllowed)
{
return false;
}
return @namespace.IsGenerated; return @namespace.IsGenerated;
} }
@ -466,9 +467,6 @@ namespace CppSharp.Generators.Registrable.Lua.Sol
public virtual bool CanGenerateEnumDecl(Enumeration enumeration) public virtual bool CanGenerateEnumDecl(Enumeration enumeration)
{ {
// if not self:isNonTemplateAllowed(context) then
// return true
// end
if (AlreadyVisited(enumeration)) if (AlreadyVisited(enumeration))
{ {
return false; return false;
@ -477,6 +475,10 @@ namespace CppSharp.Generators.Registrable.Lua.Sol
{ {
return false; return false;
} }
else if (!NonTemplateAllowed)
{
return false;
}
return enumeration.IsGenerated; return enumeration.IsGenerated;
} }

Loading…
Cancel
Save