2008-11-14 16:48:23 +00:00
|
|
|
#ifndef QCLIB_PROGTYPE_H
|
|
|
|
#define QCLIB_PROGTYPE_H
|
|
|
|
|
2020-06-27 19:32:49 +00:00
|
|
|
#if 0
|
|
|
|
//64bit primitives allows for:
|
|
|
|
// greater precision timers (so maps can last longer without getting restarted)
|
|
|
|
// planet-sized maps (with the engine's vec_t types changed too, and with some sort of magic for the gpu's precision).
|
|
|
|
//TODO: for this to work, someone'll have to go through the code to somehow deal with the vec_t/pvec_t/float differences.
|
|
|
|
#warning FTE isnt ready for this.
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef double pvec_t;
|
|
|
|
typedef int64_t pint_t;
|
|
|
|
typedef uint64_t puint_t;
|
2004-08-23 01:38:21 +00:00
|
|
|
|
2020-06-27 19:32:49 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
#define pPRId PRId64
|
|
|
|
#define pPRIi PRIi64
|
|
|
|
#define pPRIu PRIu64
|
|
|
|
#define pPRIx PRIx64
|
|
|
|
#define QCVM_64
|
2004-08-23 01:38:21 +00:00
|
|
|
#else
|
2020-06-27 19:32:49 +00:00
|
|
|
//use 32bit types, for sanity.
|
|
|
|
typedef float pvec_t;
|
|
|
|
typedef int pint_t;
|
|
|
|
typedef unsigned int puint_t;
|
2020-09-29 07:09:01 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
typedef __int64 pint64_t;
|
|
|
|
typedef unsigned __int64 puint64_t;
|
|
|
|
|
|
|
|
#define pPRId "d"
|
|
|
|
#define pPRIi "i"
|
|
|
|
#define pPRIu "u"
|
|
|
|
#define pPRIx "x"
|
|
|
|
#define pPRIi64 "I64i"
|
|
|
|
#define pPRIu64 "I64u"
|
|
|
|
#define pPRIx64 "I64x"
|
|
|
|
#else
|
|
|
|
#include <inttypes.h>
|
|
|
|
typedef int64_t pint64_t;
|
|
|
|
typedef uint64_t puint64_t;
|
|
|
|
|
|
|
|
#define pPRId PRId32
|
|
|
|
#define pPRIi PRIi32
|
|
|
|
#define pPRIu PRIu32
|
|
|
|
#define pPRIx PRIx32
|
|
|
|
#define pPRIi64 PRIi64
|
|
|
|
#define pPRIu64 PRIu64
|
|
|
|
#define pPRIx64 PRIx64
|
|
|
|
#endif
|
2020-06-27 19:32:49 +00:00
|
|
|
#define QCVM_32
|
2004-08-23 01:38:21 +00:00
|
|
|
#endif
|
|
|
|
|
2013-06-02 06:03:54 +00:00
|
|
|
typedef unsigned int pbool;
|
2020-06-27 19:32:49 +00:00
|
|
|
typedef pvec_t pvec3_t[3];
|
|
|
|
typedef pint_t progsnum_t;
|
|
|
|
typedef puint_t func_t;
|
|
|
|
typedef puint_t string_t;
|
2004-08-23 01:38:21 +00:00
|
|
|
|
2020-06-27 19:32:49 +00:00
|
|
|
extern pvec3_t pvec3_origin;
|
2004-08-23 01:38:21 +00:00
|
|
|
|
2008-11-14 16:48:23 +00:00
|
|
|
#endif /* QCLIB_PROGTYPE_H */
|
|
|
|
|