wxlua icon indicating copy to clipboard operation
wxlua copied to clipboard

Add metatable entries for classes with operator overload methods.

Open solemnwarning opened this issue 1 year ago • 0 comments

You can declare operator overloads in a class and genwxbind.lua will generate methods for them that can be called from Lua (e.g. obj:op_add(other_obj)), this commit adds them to the class metatable too, so they can be invoked using Lua operators (e.g. obj + other_obj).

solemnwarning avatar Mar 29 '24 02:03 solemnwarning