Fix Init Symbol

This commit is contained in:
TheBrokenRail 2024-01-06 05:59:19 -05:00
parent c21d34a166
commit 1062e048c4

View File

@ -130,7 +130,11 @@ function makeHeaderPart(allowCpp: boolean) {
}
// Return
return structures;
let result = '';
result += '// Init\n';
result += 'void init_symbols();\n\n';
result += structures;
return result;
}
// Create Main Header
@ -148,8 +152,6 @@ function makeMainHeader(output: string) {
result += '\n// Shortcuts\n';
result += 'typedef unsigned char uchar;\n';
result += 'typedef unsigned int uint;\n';
result += '\n// Init\n';
result += 'void init_symbols();\n';
result += '\n// Forward Declarations\n';
for (const name in STRUCTURE_FILES) {
result += `typedef struct ${name} ${name};\n`;