Skip to content

Commit bb634fd

Browse files
authored
Merge pull request #103302 from dsnopek/missing-method-flag
Bind new core `METHOD_FLAG_VIRTUAL_REQUIRED` bitfield
2 parents bc0d58b + e0370b9 commit bb634fd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

core/core_constants.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ void register_global_constants() {
723723
BIND_CORE_BITFIELD_FLAG(METHOD_FLAG_VARARG);
724724
BIND_CORE_BITFIELD_FLAG(METHOD_FLAG_STATIC);
725725
BIND_CORE_BITFIELD_FLAG(METHOD_FLAG_OBJECT_CORE);
726+
BIND_CORE_BITFIELD_FLAG(METHOD_FLAG_VIRTUAL_REQUIRED);
726727
BIND_CORE_BITFIELD_FLAG(METHOD_FLAGS_DEFAULT);
727728

728729
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_NIL", Variant::NIL);

doc/classes/@GlobalScope.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,6 +3072,9 @@
30723072
<constant name="METHOD_FLAG_OBJECT_CORE" value="64" enum="MethodFlags" is_bitfield="true">
30733073
Used internally. Allows to not dump core virtual methods (such as [method Object._notification]) to the JSON API.
30743074
</constant>
3075+
<constant name="METHOD_FLAG_VIRTUAL_REQUIRED" value="128" enum="MethodFlags" is_bitfield="true">
3076+
Flag for a virtual method that is required.
3077+
</constant>
30753078
<constant name="METHOD_FLAGS_DEFAULT" value="1" enum="MethodFlags" is_bitfield="true">
30763079
Default method flags (normal).
30773080
</constant>

0 commit comments

Comments
 (0)