summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-09 18:42:30 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-09 18:55:32 +0200
commit69f92fa26c7bef3b042d8da5e520fe60b22e01b7 (patch)
tree3157fbaec9bb148c64cb4fd3fa40bad6e8ad3864 /src/init.cpp
parentd06e536d12bd6eff02de4fdfbba86f25d1c048fc (diff)
downloadfork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.tar.gz
fork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.tar.bz2
fork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.zip
Run clang-format on src/*
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f37bc5a..a6066c3 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -64,14 +64,14 @@ godot_error create_peer_connection_wp(godot_object *out) {
_singleton_api->godot_string_destroy(&s);
// Bind script to Object
- const void *args3[] = { (void *)script };
+ const void *args3[] = { (void *)script };
_singleton_api->godot_method_bind_ptrcall(_set_script_mb, out, args3, nullptr);
return GODOT_OK;
}
godot_net_webrtc_library library = {
- {3, 2},
+ { 3, 2 },
&unregistered,
&create_peer_connection_wp,
NULL,
@@ -102,7 +102,6 @@ extern "C" void GDN_EXPORT godot_gdnative_singleton() {
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
const godot_gdnative_core_api_struct *api = o->api_struct;
for (int i = 0; i < api->num_extensions; i++) {
-
if (api->extensions[i]->type != GDNATIVE_EXT_NET)
continue;