mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
GDScript: Fix some bugs with static variables and functions
This commit is contained in:
parent
598378513b
commit
aebbbda080
21 changed files with 624 additions and 194 deletions
|
@ -149,6 +149,7 @@ public:
|
|||
|
||||
operator PropertyInfo() const {
|
||||
PropertyInfo info;
|
||||
info.usage = PROPERTY_USAGE_NONE;
|
||||
if (has_type) {
|
||||
switch (kind) {
|
||||
case UNINITIALIZED:
|
||||
|
@ -238,6 +239,8 @@ public:
|
|||
OPCODE_GET_NAMED_VALIDATED,
|
||||
OPCODE_SET_MEMBER,
|
||||
OPCODE_GET_MEMBER,
|
||||
OPCODE_SET_STATIC_VARIABLE, // Only for GDScript.
|
||||
OPCODE_GET_STATIC_VARIABLE, // Only for GDScript.
|
||||
OPCODE_ASSIGN,
|
||||
OPCODE_ASSIGN_TRUE,
|
||||
OPCODE_ASSIGN_FALSE,
|
||||
|
@ -410,14 +413,14 @@ public:
|
|||
ADDR_TYPE_STACK = 0,
|
||||
ADDR_TYPE_CONSTANT = 1,
|
||||
ADDR_TYPE_MEMBER = 2,
|
||||
ADDR_TYPE_STATIC_VAR = 3,
|
||||
ADDR_TYPE_MAX = 4,
|
||||
ADDR_TYPE_MAX = 3,
|
||||
};
|
||||
|
||||
enum FixedAddresses {
|
||||
ADDR_STACK_SELF = 0,
|
||||
ADDR_STACK_CLASS = 1,
|
||||
ADDR_STACK_NIL = 2,
|
||||
FIXED_ADDRESSES_MAX = 3,
|
||||
ADDR_SELF = ADDR_STACK_SELF | (ADDR_TYPE_STACK << ADDR_BITS),
|
||||
ADDR_CLASS = ADDR_STACK_CLASS | (ADDR_TYPE_STACK << ADDR_BITS),
|
||||
ADDR_NIL = ADDR_STACK_NIL | (ADDR_TYPE_STACK << ADDR_BITS),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue