Nazariglez / Gecko2D

Cross-platform Game Framework
https://nazariglez.github.io/Gecko2D
MIT License
50 stars 6 forks source link

Rewrite eventEmitter with macros to avoid allocations and reflect #36

Closed Nazariglez closed 6 years ago

Nazariglez commented 6 years ago

Emit create a new array in each event, this could be avoid with macros. And to avoid reflect use macros too, call the fn with the exact arg number.

Nazariglez commented 6 years ago

Done