mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Implement error return documetation
Adds ability to add error return documetation to the binder and class reference.
Usage example:
```C++
void MyClass::_bind_method() {
[..]
BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN, ERR_FILE_UNRECOGNIZED);
}
```
One function of ConfigFile was changed as example.
This commit is contained in:
@@ -149,6 +149,8 @@
|
||||
</method>
|
||||
<method name="load">
|
||||
<return type="int" enum="Error" />
|
||||
<returns_error number="0"/>
|
||||
<returns_error number="12"/>
|
||||
<argument index="0" name="path" type="String" />
|
||||
<description>
|
||||
Loads the config file specified as a parameter. The file's contents are parsed and loaded in the [ConfigFile] object which the method was called on.
|
||||
|
||||
Reference in New Issue
Block a user