Get current OS in AngelScript

Is it possible to know what is current OS inside angel script?

Is there even a way to get OS in C++ that doesn’t involve macros? If there is, then the function is probably exposed to script.
If you’re not using the Urho3DPlayer you could check for compile time defines and pass them to your init script. Which isn’t an acceptable solution but can be a temporary fix.

1 Like

GetOSVersion

Post must be at least 20 chars

2 Likes