Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
static.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _STATIC_INIT(func, where)
#define GETTIME_REALTIME   1
#define PRECACHE(func)
 directly after STATIC_INIT_LATE
#define SHUTDOWN(func)
 before shutdown
#define shutdownhooks()
#define STATIC_INIT(func)
 during worldspawn
#define static_init()
#define STATIC_INIT_EARLY(func)
 before worldspawn
#define static_init_early()
#define STATIC_INIT_LATE(func)
 directly after STATIC_INIT
#define static_init_late()
#define static_init_precache()

Functions

void __shutdown ()
void __static_init_0 ()
void __static_init_1 ()
void __static_init_2 ()
void __static_init_3 ()
 float (int tmr) _gettime
ERASEABLE void profile (string s)

Macro Definition Documentation

◆ _STATIC_INIT

#define _STATIC_INIT ( func,
where )
Value:
/* ACCUMULATE void _static_##func##profile() { profile(#func); } */ \
/* ACCUMULATE_FUNCTION(where, _static_##func##profile) */ \
ACCUMULATE void _static_##func(); \
ACCUMULATE_FUNCTION(where, _static_##func) \
void _static_##func()
#define ACCUMULATE
Definition _all.inc:31

Definition at line 19 of file static.qh.

19#define _STATIC_INIT(func, where) \
20 /* ACCUMULATE void _static_##func##profile() { profile(#func); } */ \
21 /* ACCUMULATE_FUNCTION(where, _static_##func##profile) */ \
22 ACCUMULATE void _static_##func(); \
23 ACCUMULATE_FUNCTION(where, _static_##func) \
24 void _static_##func()

◆ GETTIME_REALTIME

#define GETTIME_REALTIME   1

Definition at line 3 of file static.qh.

Referenced by CommonCommand_time(), pathlib_astar(), pathlib_waypointpath(), and profile().

◆ PRECACHE

#define PRECACHE ( func)
Value:
#define _STATIC_INIT(func, where)
Definition static.qh:19
void __static_init_3()
Definition static.qh:44

directly after STATIC_INIT_LATE

Definition at line 42 of file static.qh.

◆ SHUTDOWN

#define SHUTDOWN ( func)
Value:
_STATIC_INIT(func##_shutdown, __shutdown)
void __shutdown()
Definition static.qh:51

before shutdown

Definition at line 49 of file static.qh.

◆ shutdownhooks

#define shutdownhooks ( )
Value:
#define CALL_ACCUMULATED_FUNCTION(func)
Definition accumulate.qh:45

Definition at line 50 of file static.qh.

Referenced by SV_Shutdown().

◆ STATIC_INIT

◆ static_init

#define static_init ( )
Value:

Definition at line 33 of file static.qh.

Referenced by CSQC_Init(), m_init(), spawnfunc(), and spawnfunc().

◆ STATIC_INIT_EARLY

#define STATIC_INIT_EARLY ( func)
Value:
void __static_init_0()
Definition static.qh:29

before worldspawn

Definition at line 27 of file static.qh.

◆ static_init_early

#define static_init_early ( )
Value:

Definition at line 28 of file static.qh.

◆ STATIC_INIT_LATE

#define STATIC_INIT_LATE ( func)
Value:
void __static_init_2()
Definition static.qh:39

directly after STATIC_INIT

Definition at line 37 of file static.qh.

Referenced by STATIC_INIT_LATE().

◆ static_init_late

#define static_init_late ( )
Value:

Definition at line 38 of file static.qh.

Referenced by CSQC_Init(), m_init(), spawnfunc(), and spawnfunc().

◆ static_init_precache

#define static_init_precache ( )
Value:

Definition at line 43 of file static.qh.

Referenced by CSQC_Init(), m_init(), spawnfunc(), and spawnfunc().

Function Documentation

◆ __shutdown()

void __shutdown ( )

Definition at line 51 of file static.qh.

51{}

◆ __static_init_0()

void __static_init_0 ( )

Definition at line 29 of file static.qh.

29{}

◆ __static_init_1()

void __static_init_1 ( )

Definition at line 34 of file static.qh.

34{}

◆ __static_init_2()

void __static_init_2 ( )

Definition at line 39 of file static.qh.

39{}

◆ __static_init_3()

void __static_init_3 ( )

Definition at line 44 of file static.qh.

44{}

◆ float()

float ( int tmr)

References ERASEABLE.

◆ profile()

ERASEABLE void profile ( string s)

Definition at line 11 of file static.qh.

12{
13 static float g_starttime;
14 float rt = _gettime(GETTIME_REALTIME);
15 if (!g_starttime) g_starttime = rt;
16 LOG_TRACEF("[%f] %s", rt - g_starttime, s);
17}
#define LOG_TRACEF(...)
Definition log.qh:77
#define GETTIME_REALTIME
Definition static.qh:3

References GETTIME_REALTIME, and LOG_TRACEF.