mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Initialize class/struct variables with default values in modules/
This commit is contained in:
parent
57e2822a05
commit
f7209b459b
100 changed files with 533 additions and 772 deletions
|
@ -420,19 +420,19 @@ private:
|
|||
|
||||
public:
|
||||
struct CallState {
|
||||
GDScript *script;
|
||||
GDScriptInstance *instance;
|
||||
GDScript *script = nullptr;
|
||||
GDScriptInstance *instance = nullptr;
|
||||
#ifdef DEBUG_ENABLED
|
||||
StringName function_name;
|
||||
String script_path;
|
||||
#endif
|
||||
Vector<uint8_t> stack;
|
||||
int stack_size;
|
||||
int stack_size = 0;
|
||||
Variant self;
|
||||
uint32_t alloca_size;
|
||||
int ip;
|
||||
int line;
|
||||
int defarg;
|
||||
uint32_t alloca_size = 0;
|
||||
int ip = 0;
|
||||
int line = 0;
|
||||
int defarg = 0;
|
||||
Variant result;
|
||||
};
|
||||
|
||||
|
@ -488,7 +488,7 @@ public:
|
|||
class GDScriptFunctionState : public Reference {
|
||||
GDCLASS(GDScriptFunctionState, Reference);
|
||||
friend class GDScriptFunction;
|
||||
GDScriptFunction *function;
|
||||
GDScriptFunction *function = nullptr;
|
||||
GDScriptFunction::CallState state;
|
||||
Variant _signal_callback(const Variant **p_args, int p_argcount, Callable::CallError &r_error);
|
||||
Ref<GDScriptFunctionState> first_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue