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 20 of file static.qh.

20#define _STATIC_INIT(func, where) \
21 /* ACCUMULATE void _static_##func##profile() { profile(#func); } */ \
22 /* ACCUMULATE_FUNCTION(where, _static_##func##profile) */ \
23 ACCUMULATE void _static_##func(); \
24 ACCUMULATE_FUNCTION(where, _static_##func) \
25 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:20
void __static_init_3()
Definition static.qh:45

directly after STATIC_INIT_LATE

Definition at line 43 of file static.qh.

◆ SHUTDOWN

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

before shutdown

Definition at line 50 of file static.qh.

◆ shutdownhooks

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

Definition at line 51 of file static.qh.

Referenced by SV_Shutdown().

◆ STATIC_INIT

◆ static_init

#define static_init ( )
Value:

Definition at line 34 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:30

before worldspawn

Definition at line 28 of file static.qh.

◆ static_init_early

#define static_init_early ( )
Value:

Definition at line 29 of file static.qh.

◆ STATIC_INIT_LATE

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

directly after STATIC_INIT

Definition at line 38 of file static.qh.

Referenced by STATIC_INIT_LATE().

◆ static_init_late

#define static_init_late ( )
Value:

Definition at line 39 of file static.qh.

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

◆ static_init_precache

#define static_init_precache ( )
Value:

Definition at line 44 of file static.qh.

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

Function Documentation

◆ __shutdown()

void __shutdown ( )

Definition at line 52 of file static.qh.

52{}

◆ __static_init_0()

void __static_init_0 ( )

Definition at line 30 of file static.qh.

30{}

◆ __static_init_1()

void __static_init_1 ( )

Definition at line 35 of file static.qh.

35{}

◆ __static_init_2()

void __static_init_2 ( )

Definition at line 40 of file static.qh.

40{}

◆ __static_init_3()

void __static_init_3 ( )

Definition at line 45 of file static.qh.

45{}

◆ 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)
16 g_starttime = rt;
17 LOG_TRACEF("[%f] %s", rt - g_starttime, s);
18}
#define LOG_TRACEF(...)
Definition log.qh:75
#define GETTIME_REALTIME
Definition static.qh:3

References GETTIME_REALTIME, and LOG_TRACEF.