edo9300 / ygopro-core

ygopro script engine.
Other
45 stars 31 forks source link

Add helper macros to ease declaration of lua functions #128

Closed edo9300 closed 2 years ago

edo9300 commented 2 years ago

Use some macro and tepmlate trickery to automatically generate the array of names+function address needed to declare lua libraries from c functions. This relies on the compiler supporting the __COUNTER__ preprocessor macro.