Skip to content

Commit 8c5e038

Browse files
Added missing namespace prefixes to GDVIRTUAL macros
1 parent 5910c0e commit 8c5e038

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

binding_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def generate_virtual_version(argcount, const=False, returns=False, required=Fals
9797

9898
sproto = str(argcount)
9999
method_info = ""
100-
method_flags = "METHOD_FLAG_VIRTUAL"
100+
method_flags = "::godot::MethodFlags::METHOD_FLAG_VIRTUAL"
101101
if returns:
102102
sproto += "R"
103103
s = s.replace("$RET", "m_ret,")
@@ -110,14 +110,14 @@ def generate_virtual_version(argcount, const=False, returns=False, required=Fals
110110

111111
if const:
112112
sproto += "C"
113-
method_flags += " | METHOD_FLAG_CONST"
113+
method_flags += " | ::godot::MethodFlags::METHOD_FLAG_CONST"
114114
s = s.replace("$CONST", "const")
115115
else:
116116
s = s.replace("$CONST ", "")
117117

118118
if required:
119119
sproto += "_REQUIRED"
120-
method_flags += " | METHOD_FLAG_VIRTUAL_REQUIRED"
120+
method_flags += " | ::godot::MethodFlags::METHOD_FLAG_VIRTUAL_REQUIRED"
121121
s = s.replace(
122122
"$REQCHECK",
123123
'ERR_PRINT_ONCE("Required virtual method " + get_class() + "::" + #m_name + " must be overridden before calling.");',

0 commit comments

Comments
 (0)