mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 17:31:08 +00:00
[ruamoko] Use pr_type_names for type sizes
short and ushort are "wrong" (1 instead of 0, because qfcc currently uses int for short), but now the array will always be in sync with the enum.
This commit is contained in:
parent
07c4d28638
commit
4ae9474396
1 changed files with 8 additions and 18 deletions
|
@ -12,25 +12,15 @@ string ty_meta_name[7] = {
|
|||
};
|
||||
|
||||
//FIXME use pr_type_names.h, but need to fix unsigned, and add missing types
|
||||
//#define EV_TYPE(type) sizeof(type),
|
||||
#define field .int
|
||||
#define func void()(void)
|
||||
#define ptr void *
|
||||
#define uint unsigned
|
||||
#define ulong unsigned long
|
||||
#define ushort unsigned short
|
||||
#define EV_TYPE(type) sizeof(type),
|
||||
int pr_type_size[ev_type_count] = {
|
||||
//#include <QF/progs/pr_type_names.h>
|
||||
1, // ev_void
|
||||
1, // ev_string
|
||||
1, // ev_float
|
||||
3, // ev_vector
|
||||
1, // ev_entity
|
||||
1, // ev_field
|
||||
1, // ev_func
|
||||
1, // ev_ptr
|
||||
4, // ev_quat
|
||||
1, // ev_integer
|
||||
1, // ev_uinteger
|
||||
0, // ev_short value in opcode
|
||||
2, // ev_double
|
||||
2, // ev_long
|
||||
2, // ev_ulong
|
||||
0, // ev_invalid not a valid/simple type
|
||||
#include <QF/progs/pr_type_names.h>
|
||||
};
|
||||
|
||||
#define EV_TYPE(type) #type,
|
||||
|
|
Loading…
Reference in a new issue