godot/modules/mono
Marcel Admiraal d2b02a3d7b Remove do{ } while(0) wrapper around error macros.
As pointed out by Faless, a do{ } while(0) wrapper around a continue or
break just ends the do{ } while(0) loop. The do{ } while(0) loop exists
to enable the macro to be used as a function which requires a semicolon.

The alternative approach is to use an if(1) { } else ((void)0) wrapper.
Since the macro already has an if(unlikely(m_cond)) { } this patch simply
adds the else ((void)0) to this if statement instead.

For consistency all the macros have been updated in the same way, and
trailing else warnings corrected. However, the wrappers around ERR_PRINT
and WARN_PRINT were removed, because they generated too many ambiguous
trailing else warnings. They are also single line macros so a wrapper is
not needed.
2020-02-08 11:21:46 +01:00
..
build_scripts Fix msbuild target argument 2019-12-29 17:03:21 -05:00
doc_classes doc: Drop unused <demos> tag 2019-04-19 11:03:46 +02:00
editor Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
glue Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
icons [Mono]: the C# script icon is now visible in the editor. 2020-01-03 22:49:22 +01:00
mono_gd Remove the last ERR_PRINTS that was missed by #33391 2020-02-07 00:15:46 +05:30
utils Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
__init__.py Re-write mono module editor code in C# 2019-07-05 09:38:23 +02:00
.gitignore Make git no longer ignore solution files inside the mono module 2019-08-12 15:59:06 +02:00
class_db_api_json.cpp Fix ClassDB API portability with some android and editor classes 2020-01-19 20:15:13 +01:00
class_db_api_json.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
config.py Mono/C#: WebAssembly support 2019-11-13 21:41:11 +01:00
csharp_script.cpp Remove do{ } while(0) wrapper around error macros. 2020-02-08 11:21:46 +01:00
csharp_script.h Mono/C#: Lighten up unsafe reference checks 2020-01-23 21:23:32 +01:00
godotsharp_defs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
godotsharp_dirs.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
godotsharp_dirs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mono_gc_handle.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mono_gc_handle.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Mono/C#: Re-structure API solution and GodotTools post-build target 2019-12-28 20:48:55 +01:00
signal_awaiter_utils.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
signal_awaiter_utils.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00