mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
GDScript: Add support for variadic functions
This commit is contained in:
parent
3b963ab8b6
commit
ee121ef80e
33 changed files with 416 additions and 65 deletions
|
|
@ -456,6 +456,7 @@ private:
|
|||
GDScript *_script = nullptr;
|
||||
int _initial_line = 0;
|
||||
int _argument_count = 0;
|
||||
int _vararg_index = -1;
|
||||
int _stack_size = 0;
|
||||
int _instruction_args_size = 0;
|
||||
|
||||
|
|
@ -577,6 +578,7 @@ public:
|
|||
_FORCE_INLINE_ StringName get_source() const { return source; }
|
||||
_FORCE_INLINE_ GDScript *get_script() const { return _script; }
|
||||
_FORCE_INLINE_ bool is_static() const { return _static; }
|
||||
_FORCE_INLINE_ bool is_vararg() const { return _vararg_index >= 0; }
|
||||
_FORCE_INLINE_ MethodInfo get_method_info() const { return method_info; }
|
||||
_FORCE_INLINE_ int get_argument_count() const { return _argument_count; }
|
||||
_FORCE_INLINE_ Variant get_rpc_config() const { return rpc_config; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue