nadako / Ash-Haxe

Port of Ash entity framework to Haxe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"dead code elimination" (-dce full)

eliasku opened this issue · comments

I've tried to compile Ash with "-dce full" option (flash target):

Argument count mismatch on ash.core::ComponentMatchingFamily()

I've added @:keep meta to ComponentMatchingFamily, but exceptions is still here:

TypeError: Error #1006: _getComponents is not a function.
    at ash.core::ComponentMatchingFamily/init()
    at ash.core::ComponentMatchingFamily()

I haven't learned the macro magic yet, but guess there is a way to add keep meta to generated code.

I've created tiny fix here #16
It works for me.