diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-01 12:57:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 12:57:14 +0200 |
commit | 230a24a49d1987489f44bdd4a3cdaa34d3264437 (patch) | |
tree | b428c300218ba1fbf63cb50d474e3fe44e7d6b4d /doc/classes | |
parent | 7ee419f8d97657df558cd9e0eab4671a36f3c21f (diff) | |
parent | 8f1efa656b2e91c159dff54a7b3af7bfb4659879 (diff) |
Merge pull request #50026 from lyuma/callable_is_valid
Add Callable.is_valid() analogous to FuncRef.is_valid() from 3.x
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Callable.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml index cbab1a8f50..3c61e8278f 100644 --- a/doc/classes/Callable.xml +++ b/doc/classes/Callable.xml @@ -133,6 +133,13 @@ Returns [code]true[/code] if this [Callable] is a standard callable, referencing an object and a method using a [StringName]. </description> </method> + <method name="is_valid" qualifiers="const"> + <return type="bool"> + </return> + <description> + Returns [code]true[/code] if the object exists and has a valid function assigned, or is a custom callable. + </description> + </method> <method name="operator !=" qualifiers="operator"> <return type="bool"> </return> |