diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-01 08:58:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 08:58:57 +0200 |
commit | f7b8d0c688dc15b8841ac13990569dda81bf0652 (patch) | |
tree | 7125370c68fd2273f7a04e93efe4cbb983d38281 /modules/gdscript/gdscript_editor.cpp | |
parent | 64c9b7ffcfbb4c6fc58eb188c7cb9ed513853f3a (diff) | |
parent | 4c3c73ef9c85a85ecc88b5671df50b564f275031 (diff) |
Merge pull request #37456 from ttencate/fix/gdscript_assert_message_docs
Add missing docs for assert message in GDScript
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 98e09159ec..5437f03a04 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -430,6 +430,8 @@ void GDScriptLanguage::get_public_functions(List<MethodInfo> *p_functions) const mi.name = "assert"; mi.return_val.type = Variant::NIL; mi.arguments.push_back(PropertyInfo(Variant::BOOL, "condition")); + mi.arguments.push_back(PropertyInfo(Variant::STRING, "message")); + mi.default_arguments.push_back(String()); p_functions->push_back(mi); } } |