File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,31 @@ def check_header_exists(file):
65
65
return True
66
66
67
67
68
- def mangle (string ):
69
- return string
68
+ def mangle (file ):
69
+ result = ""
70
+ skip = False
71
+ for line in open (file ):
72
+ line = line .strip ().replace ("va_list" , "void *" ) + "\n "
73
+ if skip :
74
+ if line .startswith ("#endif" ):
75
+ skip = False
76
+ continue
77
+ if line .startswith ("#if defined(__cplusplus)" ):
78
+ skip = True
79
+ continue
80
+ if line .startswith ("#endif // RAYGUI_H" ):
81
+ break
82
+ if line .startswith ("#" ):
83
+ continue
84
+ if line .startswith ("RLAPI" ):
85
+ line = line .replace ('RLAPI ' , '' )
86
+ if line .startswith ("RAYGUIDEF" ):
87
+ line = line .replace ('RAYGUIDEF ' , '' )
88
+ if line .startswith ("PHYSACDEF" ):
89
+ line = line .replace ('PHYSACDEF ' , '' )
90
+ result += line
91
+ # print(line)
92
+ return result
70
93
71
94
72
95
def build_unix ():
You can’t perform that action at this time.
0 commit comments