QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
obj_type.c File Reference

Macros

#define ENC_DEF(dest, def)   EMIT_DEF (pr.type_data, dest, def)
 
#define ENC_STR(dest, str)
 

Typedefs

typedef def_t *(* encode_f )(type_t *type)
 

Functions

def_tqfo_encode_type (type_t *type)
 

Macro Definition Documentation

#define ENC_DEF (   dest,
  def 
)    EMIT_DEF (pr.type_data, dest, def)
#define ENC_STR (   dest,
  str 
)
Value:
do { \
def_t loc; \
loc.space = pr.type_data; \
loc.offset = POINTER_OFS (pr.type_data, &(dest)); \
(dest) = encoding_string (str); \
} while (0)
pr_info_t pr
Definition: qfcc.c:99
void reloc_def_string(struct def_s *location)
Create a relocation record for a data location referencing a string.
Definition: reloc.c:246
struct defspace_s * type_data
encoded type information.
Definition: qfcc.h:70
struct defspace_s * space
defspace to which this def belongs
Definition: def.h:61
#define POINTER_OFS(s, p)
Definition: qfcc.h:108
struct def_s def_t
Represent a memory location that holds a QuakeC/Ruamoko object.

Typedef Documentation

typedef def_t*(* encode_f)(type_t *type)