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

Loading…
Cancel
Save