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

Go to the source code of this file.

Classes

class  Lazy

Macros

#define LAZY(id)
#define LAZY_NEW(id, compute)

Macro Definition Documentation

◆ LAZY

#define LAZY ( id)
Value:
__lazy_##id

Definition at line 13 of file lazy.qh.

◆ LAZY_NEW

#define LAZY_NEW ( id,
compute )
Value:
entity LAZY(id)() \
{ \
static bool done; \
static entity it; \
if (!done) \
{ \
it = compute; \
done = true; \
} \
return it; \
}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define LAZY(id)
Definition lazy.qh:13

Definition at line 14 of file lazy.qh.

14#define LAZY_NEW(id, compute) \
15 entity LAZY(id)() \
16 { \
17 static bool done; \
18 static entity it; \
19 if (!done) \
20 { \
21 it = compute; \
22 done = true; \
23 } \
24 return it; \
25 }