Skip to content

Commit

Permalink
check for private abstracts
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 committed Oct 28, 2024
1 parent d0efde8 commit a1176e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions project.hxp
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,7 @@ class Project extends HXProject {
var abstracts:Array<String> = [
'funkin.*',
'flixel.*',
'haxe.ui.*',
'!flixel.graphics.frames.bmfont.BMFont',
'!flixel.addons.util.FlxSimplex'
'haxe.ui.*'
];
addHaxeMacro("funkin.util.macro.PolymodMacro.buildPolymodAbstracts(['" + abstracts.join("', '") + "'])");
}
Expand Down
4 changes: 4 additions & 0 deletions source/funkin/util/macro/PolymodMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class PolymodMacro
{
case ModuleType.TAbstract(a):
var cls = a.get();
if (cls.isPrivate)
{
continue;
}

for (abstractCls in sortedAbstractClasses)
{
Expand Down

0 comments on commit a1176e8

Please sign in to comment.