-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define constants for the target platform #28517
Comments
If this does get added wouldn't it be useful to be precise on OS and bit info eg.:
|
@exts 32-bit macOS isn't supported anymore, so |
This should also apply to Mac should probably be changed to Also, |
Maybe we could use the existing OS names? This way we would not have to maintain separate lists of OS names and new OS targets get added in automatically. Something like The OS singleton does not provide the number for Bits, it seems. Might want to add that in, too... |
Not to forget a general "GODOT" define like suggested in #27227 |
In C# attributes (e.g.
[DllImport]
), you can only useconst
values, so it's not possible to use theOS
singleton to check which platform you're using. So it would be very useful if a platform constant was available in the builds, so we can do something like#if WINDOWS
with preprocessor directives.The text was updated successfully, but these errors were encountered: