sol2
sol2 copied to clipboard
BOOL to bool?
This is not exactly a SOL2 problem, but rather a whole Lua and its inverted boolean type concept. Perhaps the founders of Lua had reasons for this, but.. anyway. My question is - it is possible to convert a function type BOOL to bool in runtime without a wrapper function? I need the response from the function to be returned as bool and not BOOL (int) in the lua script. Maybe some kind of type overload?