You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix error macro calls not ending with semicolon
It's not necessary, but the vast majority of calls of error macros do have an ending semicolon, so it's best to be consistent. Most WARN_DEPRECATED calls did *not* have a semicolon, but there's no reason for them to be treated differently.
This commit is contained in:
@@ -39,12 +39,12 @@
|
||||
#define ASSERT_SCRIPT_VALID() \
|
||||
{ \
|
||||
ERR_EXPLAIN(__ASSERT_SCRIPT_REASON); \
|
||||
ERR_FAIL_COND(!can_instance()) \
|
||||
ERR_FAIL_COND(!can_instance()); \
|
||||
}
|
||||
#define ASSERT_SCRIPT_VALID_V(ret) \
|
||||
{ \
|
||||
ERR_EXPLAIN(__ASSERT_SCRIPT_REASON); \
|
||||
ERR_FAIL_COND_V(!can_instance(), ret) \
|
||||
#define ASSERT_SCRIPT_VALID_V(ret) \
|
||||
{ \
|
||||
ERR_EXPLAIN(__ASSERT_SCRIPT_REASON); \
|
||||
ERR_FAIL_COND_V(!can_instance(), ret); \
|
||||
}
|
||||
#else
|
||||
#define ASSERT_SCRIPT_VALID()
|
||||
@@ -77,7 +77,7 @@ PluginScriptInstance *PluginScript::_create_instance(const Variant **p_args, int
|
||||
// There is currently no way to get the constructor function name of the script.
|
||||
// instance->call("__init__", p_args, p_argcount, r_error);
|
||||
if (p_argcount > 0) {
|
||||
WARN_PRINT("PluginScript doesn't support arguments in the constructor")
|
||||
WARN_PRINT("PluginScript doesn't support arguments in the constructor");
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
||||
Reference in New Issue
Block a user