mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Remove do{ } while(0) wrapper around error macros
This commit is contained in:
parent
95162ca393
commit
70853fd669
15 changed files with 209 additions and 230 deletions
|
@ -1650,8 +1650,7 @@ bool CSharpInstance::has_method(const StringName &p_method) const {
|
|||
}
|
||||
|
||||
Variant CSharpInstance::call(const StringName &p_method, const Variant **p_args, int p_argcount, Variant::CallError &r_error) {
|
||||
if (!script.is_valid())
|
||||
ERR_FAIL_V(Variant());
|
||||
ERR_FAIL_COND_V(!script.is_valid(), Variant());
|
||||
|
||||
GD_MONO_SCOPE_THREAD_ATTACH;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue