sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

BOOL to bool?

Open deTylmarande opened this issue 3 years ago • 0 comments

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?

deTylmarande avatar Aug 05 '22 23:08 deTylmarande