mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
461bb9f434
It turns out labeled arrays don't work if structs aren't declared in the right order (no idea what that is, though) as the struct might not have been processed when the labeled array field is initialized. Thus, do a pro-processing pass to set up any parse data prior to writing the tables.
32 lines
592 B
Objective-C
32 lines
592 B
Objective-C
#ifndef __renderer_vulkan_vkgen_vkstruct_h
|
|
#define __renderer_vulkan_vkgen_vkstruct_h
|
|
|
|
#include <Object.h>
|
|
|
|
#include "vkgen.h"
|
|
#include "vktype.h"
|
|
|
|
@class PLItem;
|
|
|
|
@interface Struct: Type
|
|
{
|
|
string outname;
|
|
string label_field;
|
|
int write_symtab;
|
|
int skip;
|
|
|
|
Array *field_defs;
|
|
PLItem *field_dict;
|
|
PLItem *only;
|
|
}
|
|
-(void) queueFieldTypes;
|
|
-(qfot_var_t *)findField:(string) fieldName;
|
|
-(void) setLabelField:(string) label_field;
|
|
-(void) writeForward;
|
|
-(void) writeTable;
|
|
-(void) writeSymtabInit;
|
|
-(void) writeSymtabEntry;
|
|
-(string) outname;
|
|
@end
|
|
|
|
#endif//__renderer_vulkan_vkgen_vkstruct_h
|