summaryrefslogtreecommitdiff
path: root/modules/webrtc
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-08-09 19:28:08 +0200
committerOmar Polo <op@omarpolo.com>2022-01-20 20:29:15 +0100
commitbd448e5535686a4473d185f4103b4ac4dedf0c71 (patch)
treefe134301a348be44b11d2230fa24a7ca378c43aa /modules/webrtc
parent8fc0dd9997c80059ec2b273e7004daa458d370ee (diff)
Rename or refactor macros to avoid leading underscores
These are not used consistently and some can conflict with system-specific defines. While here, also delete some unused macros.
Diffstat (limited to 'modules/webrtc')
-rw-r--r--modules/webrtc/register_types.cpp8
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() {}