nadako / Ash-Haxe

Port of Ash entity framework to Haxe
Other
131 stars 37 forks source link

"dead code elimination" (-dce full) #15

Closed eliasku closed 10 years ago

eliasku commented 10 years ago

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.

eliasku commented 10 years ago

I've created tiny fix here https://github.com/nadako/Ash-HaXe/pull/16 It works for me.