diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-01-20 22:50:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 22:50:39 +0100 |
commit | cfb986c6318f61b4b67bc3af4188c06a0717bd9a (patch) | |
tree | 373b028bfbae8d082db1038e222b70543c111185 /modules/webrtc | |
parent | e6170aae39194a6ada312ff8a3f53a36bf16aff8 (diff) | |
parent | bd448e5535686a4473d185f4103b4ac4dedf0c71 (diff) |
Merge pull request #51452 from omar-polo/fix-macros
Diffstat (limited to 'modules/webrtc')
-rw-r--r-- | modules/webrtc/register_types.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/webrtc/register_types.cpp b/modules/webrtc/register_types.cpp index 54d4f57eef..e6a8dcc31a 100644 --- a/modules/webrtc/register_types.cpp +++ b/modules/webrtc/register_types.cpp @@ -38,11 +38,11 @@ #include "webrtc_peer_connection_extension.h" void register_webrtc_types() { -#define _SET_HINT(NAME, _VAL_, _MAX_) \ - GLOBAL_DEF(NAME, _VAL_); \ +#define SET_HINT(NAME, _VAL_, _MAX_) \ + GLOBAL_DEF(NAME, _VAL_); \ ProjectSettings::get_singleton()->set_custom_property_info(NAME, PropertyInfo(Variant::INT, NAME, PROPERTY_HINT_RANGE, "2," #_MAX_ ",1,or_greater")); - _SET_HINT(WRTC_IN_BUF, 64, 4096); + SET_HINT(WRTC_IN_BUF, 64, 4096); ClassDB::register_custom_instance_class<WebRTCPeerConnection>(); GDREGISTER_CLASS(WebRTCPeerConnectionExtension); @@ -51,6 +51,8 @@ void register_webrtc_types() { GDREGISTER_CLASS(WebRTCDataChannelExtension); GDREGISTER_CLASS(WebRTCMultiplayerPeer); + +#undef SET_HINT } void unregister_webrtc_types() {} |