@@ -678,6 +678,17 @@ def generate_cpp_hint_file(filename):
678678 try :
679679 with open (filename , "w" , encoding = "utf-8" , newline = "\n " ) as fd :
680680 fd .write ("#define GDCLASS(m_class, m_inherits)\n " )
681+ for name in ["GDVIRTUAL" , "EXBIND" , "MODBIND" ]:
682+ for count in range (13 ):
683+ for suffix in ["" , "R" , "C" , "RC" ]:
684+ fd .write (f"#define { name } { count } { suffix } (" )
685+ if "R" in suffix :
686+ fd .write ("m_ret, " )
687+ fd .write ("m_name" )
688+ for idx in range (1 , count + 1 ):
689+ fd .write (f", type{ idx } " )
690+ fd .write (")\n " )
691+
681692 except OSError :
682693 print_warning ("Could not write cpp.hint file." )
683694
@@ -1036,7 +1047,7 @@ def non_serializable(obj):
10361047# skip the build process. This lets project files be quickly generated even if there are build errors.
10371048#
10381049# To generate AND build from the command line:
1039- # scons vsproj=yes vsproj_gen_only=yes
1050+ # scons vsproj=yes vsproj_gen_only=no
10401051def generate_vs_project (env , original_args , project_name = "godot" ):
10411052 # Augmented glob_recursive that also fills the dirs argument with traversed directories that have content.
10421053 def glob_recursive_2 (pattern , dirs , node = "." ):
@@ -1504,7 +1515,7 @@ def format_key_value(v):
15041515 proj_template = proj_template .replace ("%%DEFAULT_ITEMS%%" , "\n " .join (all_items ))
15051516 proj_template = proj_template .replace ("%%PROPERTIES%%" , "\n " .join (properties ))
15061517
1507- with open (f"{ project_name } .vcxproj" , "w" , encoding = "utf-8" , newline = "\n " ) as f :
1518+ with open (f"{ project_name } .vcxproj" , "w" , encoding = "utf-8" , newline = "\r \ n " ) as f :
15081519 f .write (proj_template )
15091520
15101521 if not get_bool (original_args , "vsproj_props_only" , False ):
0 commit comments