Skip to content

Commit

Permalink
Format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JiepengTan committed Aug 16, 2024
1 parent c3c303f commit 24cf6d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/extension/gdextension_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ static void gdextension_editor_remove_plugin(GDExtensionConstStringNamePtr p_cla
#endif
}

#define REGISTER_INTERFACE_FUNC(m_name) GDExtension::register_interface_function(#m_name, (GDExtensionInterfaceFunctionPtr) & gdextension_##m_name)
#define REGISTER_INTERFACE_FUNC(m_name) GDExtension::register_interface_function(#m_name, (GDExtensionInterfaceFunctionPtr)&gdextension_##m_name)

static void gdextension_spx_string_new_with_latin1_chars(GDExtensionUninitializedStringPtr r_dest, const char *p_contents) {
gdextension_string_new_with_latin1_chars(r_dest, p_contents);
Expand Down
4 changes: 2 additions & 2 deletions core/extension/gdextension_spx_ext.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**************************************************************************/
/**************************************************************************/
/* gdextension_spx_ext.cpp */
/**************************************************************************/
/* This file is part of: */
Expand Down Expand Up @@ -130,7 +130,7 @@ static GdFloat gdextension_spx_ui_get_font_size(GdObj id) { return uiMgr->get_fo
static void gdextension_spx_ui_set_visible(GdObj id, GdBool visible) { uiMgr->set_visible(id, visible); }
static GdBool gdextension_spx_ui_get_visible(GdObj id) { return uiMgr->get_visible(id); }

#define REGISTER_SPX_INTERFACE_FUNC(m_name) GDExtension::register_interface_function("spx_" #m_name, (GDExtensionInterfaceFunctionPtr) & gdextension_spx_##m_name)
#define REGISTER_SPX_INTERFACE_FUNC(m_name) GDExtension::register_interface_function("spx_" #m_name, (GDExtensionInterfaceFunctionPtr)&gdextension_spx_##m_name)

void gdextension_spx_setup_interface() {
REGISTER_SPX_INTERFACE_FUNC(global_register_callbacks);
Expand Down
2 changes: 1 addition & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "core/extension/extension_api_dump.h"
#include "core/extension/gdextension_interface_dump.gen.h"
#include "core/extension/gdextension_manager.h"
#include "core/extension/spx.h"
#include "core/input/input.h"
#include "core/input/input_map.h"
#include "core/io/dir_access.h"
Expand Down Expand Up @@ -80,7 +81,6 @@
#include "servers/text/text_server_dummy.h"
#include "servers/text_server.h"
#include "servers/xr_server.h"
#include "core/extension/spx.h"

#ifdef TESTS_ENABLED
#include "tests/test_main.h"
Expand Down

0 comments on commit 24cf6d2

Please sign in to comment.