Xonotic
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)   __lazy_##id
 
#define LAZY_NEW(id, compute)
 

Macro Definition Documentation

◆ LAZY

#define LAZY (   id)    __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; \
}
entity() spawn
#define LAZY(id)
Definition: lazy.qh:13

Definition at line 14 of file lazy.qh.