topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
56 stars 81 forks source link

Define a function inside the define? #2499

Closed Gradius2 closed 3 years ago

Gradius2 commented 3 years ago

Additional Information (Steps to reproduce/Expected behavior) :

Not a real issue... but is confusing.

Is this define a function inside the define ?

File: ..\src\map\lua\luautils.h

Lines: 41~43:

#define SOL_START(BaseTypeName, BindingTypeName) luautils::lua.new_usertype<BindingTypeName>(#BaseTypeName
#define SOL_REGISTER(Func) , #Func, &Func
#define SOL_END() );
Gradius2 commented 3 years ago

Stetical / Cosmetical changes: space

Hmm... is fully of it on scripts files, 74 files, 89 hits.

zach2good commented 3 years ago

If you have questions about the codebase, please ask them in Discord instead of reporting false issues.