-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentationbugtopic:dotnet
Description
Your Godot version:
4.2 4.4
Issue description:
The wiki page on conditional compilation for C# has a number of issues:
It saysGODOT_SERVERis defined for dedicated server exports, but it's never defined.It saysGODOT_64orGODOT_32is defined in the editor and exports, but they're never defined.- It says
GODOT_PCis defined only when exporting, but it's also defined in the editor. - It says the platform defines are "created from the
get_name()method of the OS singleton" which is not true, asget_name()values have different casing, separate Linux and BSD, and uses "Web" rather than HTML5.
Additionally, there are some design problems:
- No guarantee that the names won't change in the future.
- Duplicate definitions such as
GODOT_MACOS/GODOT_OSX,GODOT_WEB/GODOT_HTML5. GODOT_32andGODOT_64are ambiguous between the OS architecture and the floating point accuracy.
There's no clear consensus on determining which export the game is running on, so I suggest a dedicated wiki page is created for this purpose.
URL to the documentation page:
https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_features.html
ViraVnh
Metadata
Metadata
Assignees
Labels
area:manualIssues and PRs related to the Manual/Tutorials section of the documentationIssues and PRs related to the Manual/Tutorials section of the documentationbugtopic:dotnet