mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
26 lines
534 B
R
26 lines
534 B
R
|
#include <types.h>
|
||
|
|
||
|
#include "test-harness.h"
|
||
|
|
||
|
typedef int int32_t;
|
||
|
int32_t *int32_ptr;
|
||
|
|
||
|
typedef struct xdef_s {
|
||
|
qfot_type_t *type; ///< pointer to type definition
|
||
|
void *ofs; ///< 32-bit version of ddef_t.ofs
|
||
|
} xdef_t;
|
||
|
|
||
|
void *PR_FindGlobal (string name) = #0;
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
//FIXME need a simple way to get at a def's meta-data
|
||
|
xdef_t *xdefs = PR_FindGlobal (".xdefs");
|
||
|
while (xdefs.ofs != &int32_ptr) {
|
||
|
xdefs++;
|
||
|
}
|
||
|
printf ("int32_ptr: %s\n", xdefs.type.encoding);
|
||
|
return xdefs.type.encoding != "{>^i}";
|
||
|
}
|