Browse Source

Merge pull request #6686 from raulsntos/dotnet/defines

C#: Add TOOLS define and remove custom features
Yuri Sizov 2 years ago
parent
commit
3c3c65d4d1
1 changed files with 6 additions and 4 deletions
  1. 6 4
      tutorials/scripting/c_sharp/c_sharp_features.rst

+ 6 - 4
tutorials/scripting/c_sharp/c_sharp_features.rst

@@ -125,7 +125,7 @@ Or you can detect which engine your code is in, useful for making cross-engine l
     #elif UNITY_5_3_OR_NEWER
     #elif UNITY_5_3_OR_NEWER
             print("This is Unity.");
             print("This is Unity.");
     #else
     #else
-            throw new InvalidWorkflowException("Only Godot and Unity are supported.");
+            throw new NotSupportedException("Only Godot and Unity are supported.");
     #endif
     #endif
         }
         }
 
 
@@ -134,6 +134,10 @@ Full list of defines
 
 
 * ``GODOT`` is always defined for Godot projects.
 * ``GODOT`` is always defined for Godot projects.
 
 
+* ``TOOLS`` is defined when building with the Debug configuration (editor and editor player).
+
+* ``GODOT_REAL_T_IS_DOUBLE`` is defined when the ``GodotFloat64`` property is set to ``true``.
+
 * One of ``GODOT_64`` or ``GODOT_32`` is defined depending on if the architecture is 64-bit or 32-bit.
 * One of ``GODOT_64`` or ``GODOT_32`` is defined depending on if the architecture is 64-bit or 32-bit.
 
 
 * One of ``GODOT_LINUXBSD``, ``GODOT_WINDOWS``, ``GODOT_OSX``,
 * One of ``GODOT_LINUXBSD``, ``GODOT_WINDOWS``, ``GODOT_OSX``,
@@ -141,7 +145,7 @@ Full list of defines
   depending on the OS. These names may change in the future.
   depending on the OS. These names may change in the future.
   These are created from the ``get_name()`` method of the
   These are created from the ``get_name()`` method of the
   :ref:`OS <class_OS>` singleton, but not every possible OS
   :ref:`OS <class_OS>` singleton, but not every possible OS
-  the method returns is an OS that Godot with Mono runs on.
+  the method returns is an OS that Godot with .NET runs on.
 
 
 When **exporting**, the following may also be defined depending on the export features:
 When **exporting**, the following may also be defined depending on the export features:
 
 
@@ -153,7 +157,5 @@ When **exporting**, the following may also be defined depending on the export fe
 
 
 * Any of ``GODOT_S3TC``, ``GODOT_ETC``, and ``GODOT_ETC2`` depending on the texture compression type.
 * Any of ``GODOT_S3TC``, ``GODOT_ETC``, and ``GODOT_ETC2`` depending on the texture compression type.
 
 
-* Any custom features added in the export menu will be capitalized and prefixed: ``foo`` -> ``GODOT_FOO``.
-
 To see an example project, see the OS testing demo:
 To see an example project, see the OS testing demo:
 https://github.com/godotengine/godot-demo-projects/tree/master/misc/os_test
 https://github.com/godotengine/godot-demo-projects/tree/master/misc/os_test