mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +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:
parent
d8877d2df5
commit
6d16f2f053
52 changed files with 103 additions and 104 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue