Skip to content

Commit

Permalink
Use macros syntax: upper case instead of lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Jun 10, 2024
1 parent a628d16 commit 9aaf551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions addons/gdcef/gdcef/src/gdcef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool GDCef::initialize(godot::Dictionary config)

// Check if this process is executing from the Godot editor or from the
// your standalone application.
if (isStartedFromGodotEditor())
if (IS_STARTED_FROM_GODOT_EDITOR())
{
std::string cef_folder_path =
getConfig(config, "artifacts", std::string(CEF_ARTIFACTS_FOLDER));
Expand All @@ -130,7 +130,7 @@ bool GDCef::initialize(godot::Dictionary config)
// Note: exported projects don't support globalize_path, see:
// https://docs.godotengine.org/en/3.5/classes/class_projectsettings.html
// Section: class-projectsettings-method-globalize-path
folder = globalize_path(cef_folder_path);
folder = GLOBALIZE_PATH(cef_folder_path);
}
else
{
Expand Down Expand Up @@ -167,7 +167,7 @@ bool GDCef::initialize(godot::Dictionary config)
// Note: passed m_impl as 3th argument (as CefApp) because this is needed
// to call OnBeforeCommandLineProcessing().
CefMainArgs args;
GDCEF_DEBUG_VAL("[GDCEF][GDCef::_init] CefInitialize");
GDCEF_DEBUG_VAL("CefInitialize");
if (!CefInitialize(args, m_cef_settings, m_impl, nullptr))
{
GDCEF_ERROR("CefInitialize failed");
Expand Down
4 changes: 2 additions & 2 deletions addons/gdcef/gdcef/src/helper_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
//! \brief CEF can be run either from the binary (standalone application) or
//! from the Godot editor. We have to distinguish the both case.
// ****************************************************************************
#define isStartedFromGodotEditor() \
#define IS_STARTED_FROM_GODOT_EDITOR() \
godot::OS::get_singleton()->has_feature("editor")

#define globalize_path(path) \
#define GLOBALIZE_PATH(path) \
godot::ProjectSettings::get_singleton()->globalize_path(path.c_str()).utf8().get_data()

// ****************************************************************************
Expand Down

0 comments on commit 9aaf551

Please sign in to comment.