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).
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
).