godot/modules
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
..
arkit Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
assimp Add do..while(0) wrappers to macros without one. 2020-02-05 11:19:12 +01:00
bmp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
bullet Add do..while(0) wrappers to macros without one. 2020-02-05 11:19:12 +01:00
camera Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
csg Update docs to version 4.0 2020-01-31 17:15:41 -08:00
cvtt Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
dds Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
enet Update docs to version 4.0 2020-01-31 17:15:41 -08:00
etc Add support for Lum-alpha textures to ETC fallback 2020-01-03 11:10:44 -08:00
freetype Use modules_enabled.gen.h to improve inter dependency checks 2020-02-07 11:50:40 +01:00
gdnative Remove duplicate ERR_PRINT macro. 2020-02-05 11:13:24 +01:00
gdscript Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
gridmap Update docs to version 4.0 2020-01-31 17:15:41 -08:00
hdr Remove duplicate WARN_PRINT macro. 2020-02-05 11:13:24 +01:00
jpg Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
jsonrpc Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mbedtls Remove duplicate ERR_PRINT macro. 2020-02-05 11:13:24 +01:00
mobile_vr Update docs to version 4.0 2020-01-31 17:15:41 -08:00
mono Remove do{ } while(0) wrapper around error macros. 2020-02-08 11:21:46 +01:00
ogg Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
opensimplex Update docs to version 4.0 2020-01-31 17:15:41 -08:00
opus Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pvr Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
recast Use modules_enabled.gen.h to improve inter dependency checks 2020-02-07 11:50:40 +01:00
regex Update docs to version 4.0 2020-01-31 17:15:41 -08:00
squish Image: Include S3TC compression via Squish in non-tools build 2020-01-13 15:58:49 +01:00
stb_vorbis Fix empty audio infinite loop 2020-02-04 21:11:38 +00:00
svg Use modules_enabled.gen.h to improve inter dependency checks 2020-02-07 11:50:40 +01:00
tga Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
theora Update docs to version 4.0 2020-01-31 17:15:41 -08:00
tinyexr Remove duplicate ERR_PRINT macro. 2020-02-05 11:13:24 +01:00
upnp Update docs to version 4.0 2020-01-31 17:15:41 -08:00
vhacd Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_script Merge pull request #35749 from Chaosus/vst_fix_constants 2020-02-06 11:19:08 +01:00
vorbis Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
webm Update docs to version 4.0 2020-01-31 17:15:41 -08:00
webp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
webrtc Update docs to version 4.0 2020-01-31 17:15:41 -08:00
websocket Update docs to version 4.0 2020-01-31 17:15:41 -08:00
xatlas_unwrap Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
modules_builders.py SCons: Generate header with info on which modules are enabled 2020-02-07 11:31:37 +01:00
register_module_types.h SCons: Generate header with info on which modules are enabled 2020-02-07 11:31:37 +01:00
SCsub SCons: Generate header with info on which modules are enabled 2020-02-07 11:31:37 +01:00