Xonotic
_all.inc File Reference
#include "compiler.qh"
#include <dpdefs/pre.qh>
#include <dpdefs/post.qh>
#include "self.qh"
#include "bool.qh"
#include "int.qh"
#include "macro.qh"
#include "warpzone/mathlib.qc"
#include "deglobalization.qh"
#include "accumulate.qh"
#include "angle.qc"
#include "arraylist.qh"
#include "bits.qh"
#include "color.qh"
#include "counting.qh"
#include "cvar.qh"
#include "defer.qh"
#include "draw.qh"
#include "enumclass.qh"
#include "file.qh"
#include "float.qh"
#include "functional.qh"
#include "i18n.qh"
#include "intrusivelist.qh"
#include "iter.qh"
#include "json.qc"
#include "lazy.qh"
#include "linkedlist.qh"
#include "log.qh"
#include "map.qh"
#include "markdown.qh"
#include "math.qh"
#include "misc.qh"
#include "net.qh"
#include "nil.qh"
#include "noise.qh"
#include "oo.qh"
#include "p2mathlib.qc"
#include "progname.qh"
#include "promise.qc"
#include "random.qc"
#include "registry.qh"
#include "registry_net.qh"
#include "replicate.qh"
#include "sortlist.qc"
#include "sort.qh"
#include "spawnfunc.qh"
#include "static.qh"
#include "stats.qh"
#include "string.qh"
#include "struct.qh"
#include "test.qc"
#include "unsafe.qh"
#include "urllib.qc"
#include "vector.qh"
#include "yenc.qh"
#include "matrix/_mod.inc"
+ Include dependency graph for _all.inc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACCUMULATE
 
#define ALIAS(var)
 
#define bool   float
 
#define COMPAT_NO_MOD_IS_XONOTIC
 
#define ERASEABLE
 
#define int   float
 
#define IS_CSQC   0
 
#define is_entity(this)   (true || etof(this))
 
#define is_float(this)   (true || ftoe(this))
 
#define is_string(this)   (true || stof(this))
 
#define IS_SVQC   0
 
#define is_vector(this)   (true || vtos(this))
 
#define isnt_entity(this)
 
#define isnt_float(this)
 
#define isnt_string(this)
 
#define isnt_vector(this)
 
#define objerror(this, msg)
 
#define objerror_safe(e)
 
#define pow(a, b)   pow(a, b)
 
#define TC(T, sym)
 
#define USING(name, T)   typedef T name
 

Functions

bool is_bool (float this)
 
bool is_int (float this)
 
void isnt_bool (float this)
 
void isnt_int (float this)
 

Macro Definition Documentation

◆ ACCUMULATE

#define ACCUMULATE

Definition at line 29 of file _all.inc.

◆ ALIAS

#define ALIAS (   var)

Definition at line 42 of file _all.inc.

◆ bool

bool   float

Definition at line 24 of file _all.inc.

Referenced by vehicle_impulse().

◆ COMPAT_NO_MOD_IS_XONOTIC

#define COMPAT_NO_MOD_IS_XONOTIC

Definition at line 2 of file _all.inc.

◆ ERASEABLE

#define ERASEABLE

Definition at line 35 of file _all.inc.

Referenced by _json_parse_array(), _json_parse_false(), _json_parse_float(), _json_parse_int(), _json_parse_members(), _json_parse_null(), _json_parse_number(), _json_parse_object(), _json_parse_pair(), _json_parse_string(), _json_parse_true(), _json_parse_value(), _shufflewords_swapfunc(), almost_equals(), almost_equals_eps(), almost_in_bounds(), angc(), angle_snap_f(), angle_snap_vec(), anglemods(), bezier_quadratic_getderivative(), bezier_quadratic_getpoint(), blink_synced(), boxesoverlap(), buf_load(), buf_save(), car(), cdr(), colormapPaletteColor_(), cons(), cons_mid(), count_fill(), cubic_speedfunc(), cubic_speedfunc_is_sane(), cvar_or(), cvar_value_issafe(), db_dump(), db_load(), DebugPrintToChat(), DebugPrintToChatAll(), DistributeEvenly_Get(), DistributeEvenly_Init(), expr_evaluate(), FindConnectedComponent(), float2range01(), float2range11(), formatmessage(), fsnap(), fstrunzone(), ftos_decimals(), ftos_mindecimals(), GENERIC_COMMAND(), GiveBit(), heapsort(), hsl_to_rgb(), hsv_to_rgb(), hue_mi_ma_to_rgb(), IL_CONTAINS(), IL_DTOR(), IL_INIT(), IL_POP(), IL_PUSH(), IL_SHIFT(), IL_UNSHIFT(), is_all_nans(), isCaretEscaped(), isInvisibleString(), isValidColorCodeValue(), json_del(), json_get(), json_parse(), lerp(), lerp3ratio(), lerpratio(), lerpv(), lerpv3ratio(), lerpvratio(), log2of(), lowestbit(), MakeConsoleSafe(), map_ranges(), matchacl(), mean_accumulate(), median(), navigation_goalrating_timeout(), Noise_Brown(), Noise_Pink(), Noise_White(), point_line_vec(), PrintToChat(), PrintToChatAll(), PrintToChatTeam(), randombit(), randompos(), RandomSelection_Init(), reflect(), RegisterCvars(), Registry_check(), rgb_mi_ma_to_hue(), rgb_to_hsl(), rgb_to_hsv(), seconds_tostring(), shortangle_f(), shortangle_v(), shortangle_vxy(), shufflewords(), SHUTDOWN(), solve_quadratic(), strftime_s(), substring_range(), u8_strsize(), unescape(), url_fclose(), url_fgets(), url_fputs(), url_multi_ready(), url_single_fopen(), url_URI_Get_Callback(), vec_bias(), vec_bounds_in(), vec_bounds_out(), vec_reflect(), vec_to_max(), vec_to_min(), vercmp_recursive(), vlen_maxnorm2d(), vlen_minnorm2d(), and vsnap().

◆ int

#define int   float

Definition at line 20 of file _all.inc.

Referenced by bd_close_editor(), nmm_in_mill(), pp_next_match(), and ttt_next_match().

◆ IS_CSQC

#define IS_CSQC   0

Definition at line 8 of file _all.inc.

Referenced by func_ladder_think().

◆ is_entity

#define is_entity (   this)    (true || etof(this))

Definition at line 97 of file _all.inc.

◆ is_float

#define is_float (   this)    (true || ftoe(this))

Definition at line 91 of file _all.inc.

◆ is_string

#define is_string (   this)    (true || stof(this))

Definition at line 95 of file _all.inc.

◆ IS_SVQC

#define IS_SVQC   0

Definition at line 14 of file _all.inc.

Referenced by sys_phys_update().

◆ is_vector

#define is_vector (   this)    (true || vtos(this))

Definition at line 93 of file _all.inc.

◆ isnt_entity

#define isnt_entity (   this)

Definition at line 98 of file _all.inc.

◆ isnt_float

#define isnt_float (   this)

Definition at line 92 of file _all.inc.

◆ isnt_string

#define isnt_string (   this)

Definition at line 96 of file _all.inc.

◆ isnt_vector

#define isnt_vector (   this)

Definition at line 94 of file _all.inc.

◆ objerror

#define objerror (   this,
  msg 
)
Value:
LOG_WARN("======OBJECT ERROR======"); \
entity _e = (this); \
eprint(_e); \
objerror_safe(_e); \
delete(_e); \
LOG_WARNF("%s OBJECT ERROR in %s:\n%s\nTip: read above for entity information", PROGNAME, __FUNC__, msg); \
MACRO_END
#define LOG_WARN(...)
Definition: log.qh:66

Definition at line 169 of file _all.inc.

◆ objerror_safe

#define objerror_safe (   e)

Definition at line 163 of file _all.inc.

◆ pow

#define pow (   a,
 
)    pow(a, b)

Definition at line 65 of file _all.inc.

◆ TC

#define TC (   T,
  sym 
)
Value:
if (!is_##T(sym)) { \
LOG_WARNF("Type check failed: " #sym " :: " #T); \
isnt_##T(sym); \
} \
MACRO_END
if(IS_DEAD(this))
Definition: impulse.qc:92

Definition at line 82 of file _all.inc.

Referenced by Assault::Assault ::m_configuremenu(), CaptureTheFlag::CaptureTheFlag ::m_configuremenu(), centerprint_Add(), centerprint_Kill(), ClanArena::ClanArena ::m_configuremenu(), Cmd_MapVote_MapDownload(), Cmd_Scoreboard_SetFields(), Command::Command ::m_invokecmd(), CS(), CSQC_InputEvent(), CSQC_UpdateView(), CSQCPlayer_FallbackFrame(), dom_spawnteam(), dom_spawnteams(), Domination::Domination ::m_configuremenu(), draw_teamradar_link(), DrawAmmoItem(), DrawCAItem(), DrawDomItem(), DrawNumIcon(), DrawNumIcon_expanding(), FindConnectedComponent(), FreezeTag::FreezeTag ::m_configuremenu(), GameItem::GameItem ::display(), GameItem::GameItem ::show(), Gametype::Gametype ::describe(), Gametype::Gametype ::display(), Gametype::Gametype ::m_configuremenu(), Gametype::Gametype ::m_generate_mapinfo(), GameTypeVote_DrawGameTypeItem(), GameTypeVote_ReadOption(), getPowerupItemAlign(), GetTeam(), HUD_GetRowCount(), HUD_GetTableSize_BestItemAR(), HUD_Panel_DrawHighlight(), HUD_Panel_DrawProgressBar(), HUD_Quickmenu_PlayerListEntries(), HUD_Quickmenu_PlayerListEntries_Create(), HUD_Radar_InputEvent(), HUD_Radar_Show_Maximized(), Invasion::Invasion ::m_configuremenu(), KeyHunt::KeyHunt ::m_configuremenu(), LastManStanding::LastManStanding ::m_configuremenu(), LocalCommand_blurtest(), LocalCommand_boxparticles(), LocalCommand_create_scrshot_ent(), LocalCommand_debugmodel(), LocalCommand_handlevote(), LocalCommand_hud(), LocalCommand_localprint(), LocalCommand_mv_download(), LocalCommand_sendcvar(), loopsound(), MakeRaceString(), MapVote_CheckPic(), MapVote_CheckPK3(), MapVote_DrawAbstain(), MapVote_DrawMapItem(), MapVote_FormatMapItem(), MapVote_GridVec(), MapVote_InputEvent(), MapVote_MoveDown(), MapVote_MoveLeft(), MapVote_MoveRight(), MapVote_MoveUp(), MapVote_ReadOption(), MapVote_RGB(), MapVote_SendChoice(), Model::Model ::model_precache(), Monster::Monster ::mr_anim(), Monster::Monster ::mr_death(), Monster::Monster ::mr_pain(), Monster::Monster ::mr_setup(), Monster::Monster ::mr_think(), NexBall::NexBall ::m_configuremenu(), Onslaught::Onslaught ::m_configuremenu(), Pickup::Pickup ::show(), play_countdown(), Player::Player ::~ Player(), ClientState::PlayerState ::ps_push(), QuickMenu_ActionForNumber(), QuickMenu_InputEvent(), QuickMenu_Page_ActiveEntry(), QuickMenu_Page_ClearEntry(), QuickMenu_Page_Load(), QuickMenu_Page_LoadEntry(), Race::Race ::m_configuremenu(), RaceCTS::RaceCTS ::m_configuremenu(), Scoreboard_CompareScore(), Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), SetTeam(), skel_set_boneabs(), skeleton_from_frames(), Sound::Sound ::sound_precache(), SpectateCopy(), StatusEffects::StatusEffects ::display(), TeamDeathmatch::TeamDeathmatch ::m_configuremenu(), URI_Get_Callback(), vehicle_alarm(), vehicles_projectile(), W_Reload(), W_SetupShot_Dir_ProjectileSize_Range(), W_SwitchWeapon_Force(), W_WeaponFrame(), weaponorder_cmp(), and weaponorder_swap().

◆ USING

#define USING (   name,
 
)    typedef T name

Definition at line 72 of file _all.inc.

Function Documentation

◆ is_bool()

bool is_bool ( float  this)

Definition at line 101 of file _all.inc.

101 { return this == true || this == false; }

◆ is_int()

bool is_int ( float  this)

Definition at line 99 of file _all.inc.

References floor().

99 { return this == floor(this); }
+ Here is the call graph for this function:

◆ isnt_bool()

void isnt_bool ( float  this)

Definition at line 102 of file _all.inc.

References ftos(), and print().

102 { print(ftos(this)); }
+ Here is the call graph for this function:

◆ isnt_int()

void isnt_int ( float  this)

Definition at line 100 of file _all.inc.

References ftos(), and print().

100 { print(ftos(this)); }
+ Here is the call graph for this function: