Fix Init Symbol
This commit is contained in:
parent
c21d34a166
commit
1062e048c4
@ -130,7 +130,11 @@ function makeHeaderPart(allowCpp: boolean) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return
|
// Return
|
||||||
return structures;
|
let result = '';
|
||||||
|
result += '// Init\n';
|
||||||
|
result += 'void init_symbols();\n\n';
|
||||||
|
result += structures;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create Main Header
|
// Create Main Header
|
||||||
@ -148,8 +152,6 @@ function makeMainHeader(output: string) {
|
|||||||
result += '\n// Shortcuts\n';
|
result += '\n// Shortcuts\n';
|
||||||
result += 'typedef unsigned char uchar;\n';
|
result += 'typedef unsigned char uchar;\n';
|
||||||
result += 'typedef unsigned int uint;\n';
|
result += 'typedef unsigned int uint;\n';
|
||||||
result += '\n// Init\n';
|
|
||||||
result += 'void init_symbols();\n';
|
|
||||||
result += '\n// Forward Declarations\n';
|
result += '\n// Forward Declarations\n';
|
||||||
for (const name in STRUCTURE_FILES) {
|
for (const name in STRUCTURE_FILES) {
|
||||||
result += `typedef struct ${name} ${name};\n`;
|
result += `typedef struct ${name} ${name};\n`;
|
||||||
|
Loading…
Reference in New Issue
Block a user