mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +00:00
Add missing docs for assert message in GDScript
Seems like this was overlooked in PR #31142. See also issue #17082.
(cherry picked from commit 4c3c73ef9c)
This commit is contained in:
parent
011602447c
commit
c2469d0c6d
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue