Xonotic
|
#include "progname.qh"
Go to the source code of this file.
Macros | |
#define | __SOURCELOC__ (sprintf("^7%s^9(^9%s^7:^9%s^7)", __FUNC__, __FILE__, STR(__LINE__))) |
#define | _assert(f, expr, then) |
#define | _backtrace() builtin_remove(NULL) |
#define | _LOG(f, level, s) |
#define | _LOG_DEBUG(s) _LOG(dprint2, "^2DEBUG", s) |
#define | _LOG_FATAL(s) _LOG(error, "^1FATAL", s) |
#define | _LOG_HEADER(level) "^9[::^7"PROGNAME"^9::"level"^9] ", __SOURCELOC__ |
#define | _LOG_HELP(s) print("^7", s, "\n") |
#define | _LOG_INFO(s) |
#define | _LOG_SEVERE(s) _LOG(backtrace, "^1SEVERE", s) |
#define | _LOG_TRACE(s) _LOG(dprint, "^6TRACE", s) |
#define | _LOG_WARN(s) _LOG(print, "^3WARNING", s) |
#define | assert(expr, ...) _assert(print_assertfailed_severe, expr, __VA_ARGS__) |
#define | ASSERT_LESS(name, var, const) noref int name[(const - var + 1)]; |
#define | assert_once(expr, ...) |
#define | backtrace(msg) |
#define | demand(expr, ...) _assert(print_assertfailed_fatal, expr, __VA_ARGS__) |
#define | devassert(...) MACRO_BEGIN if (autocvar_developer > 0) assert(__VA_ARGS__); MACRO_END |
#define | devassert_once(...) MACRO_BEGIN if (autocvar_developer > 0) assert_once(__VA_ARGS__); MACRO_END |
#define | devdemand(...) MACRO_BEGIN if (autocvar_developer > 0) demand(__VA_ARGS__); MACRO_END |
#define | dprint2(msg) |
#define | LOG_DEBUG(...) _LOG_DEBUG(strcat1n(__VA_ARGS__)) |
#define | LOG_DEBUGF(...) _LOG_DEBUG(sprintf(__VA_ARGS__)) |
#define | LOG_FATAL(...) _LOG_FATAL(strcat1n(__VA_ARGS__)) |
#define | LOG_FATALF(...) _LOG_FATAL(sprintf(__VA_ARGS__)) |
#define | LOG_HELP(...) _LOG_HELP(strcat1n(__VA_ARGS__)) |
#define | LOG_HELPF(...) _LOG_HELP(sprintf(__VA_ARGS__)) |
#define | LOG_INFO(...) _LOG_INFO(strcat1n(__VA_ARGS__)) |
#define | LOG_INFOF(...) _LOG_INFO(sprintf(__VA_ARGS__)) |
#define | LOG_SEVERE(...) _LOG_SEVERE(strcat1n(__VA_ARGS__)) |
#define | LOG_SEVEREF(...) _LOG_SEVERE(sprintf(__VA_ARGS__)) |
#define | LOG_TRACE(...) _LOG_TRACE(strcat1n(__VA_ARGS__)) |
#define | LOG_TRACEF(...) _LOG_TRACE(sprintf(__VA_ARGS__)) |
#define | LOG_WARN(...) _LOG_WARN(strcat1n(__VA_ARGS__)) |
#define | LOG_WARNF(...) _LOG_WARN(sprintf(__VA_ARGS__)) |
Functions | |
void | print_assertfailed_fatal (string expr) |
void | print_assertfailed_severe (string expr) |
string (string, string...) strcat1n | |
Variables | |
noref int | autocvar_developer |
noref bool | autocvar_prvm_backtraceforwarnings |
#define __SOURCELOC__ (sprintf("^7%s^9(^9%s^7:^9%s^7)", __FUNC__, __FILE__, STR(__LINE__))) |
#define _assert | ( | f, | |
expr, | |||
then | |||
) |
#define _LOG | ( | f, | |
level, | |||
s | |||
) |
#define _LOG_HEADER | ( | level | ) | "^9[::^7"PROGNAME"^9::"level"^9] ", __SOURCELOC__ |
#define _LOG_INFO | ( | s | ) |
#define assert | ( | expr, | |
... | |||
) | _assert(print_assertfailed_severe, expr, __VA_ARGS__) |
Definition at line 8 of file log.qh.
Referenced by ClientConnect(), ClientData_Send(), ClientDisconnect(), CS(), Draw_ShowNames_All(), IL_CONTAINS(), IL_INIT(), IL_POP(), IL_PUSH(), IL_REMOVE(), IL_SHIFT(), IL_UNSHIFT(), LL_POP(), LL_PUSH(), and TeamScore_SendEntity().
#define assert_once | ( | expr, | |
... | |||
) |
Definition at line 11 of file log.qh.
Referenced by RegisterTeam().
#define backtrace | ( | msg | ) |
Definition at line 105 of file log.qh.
Referenced by ctf_RespawnFlag(), Deathtype_Name(), EliminatedPlayers_Init(), InitializeEntitiesRun(), Local_Notification(), Local_Notification_WOVA(), Mutator_Add(), Mutator_Remove(), Obituary(), Obituary_SpecialDeath(), Portal_TeleportPlayer(), RadiusDamageForSource(), round_handler_Spawn(), UpdatePlayerSounds(), W_DecreaseAmmo(), waypoint_spawn(), and weapon_thinkf().
#define demand | ( | expr, | |
... | |||
) | _assert(print_assertfailed_fatal, expr, __VA_ARGS__) |
#define devassert | ( | ... | ) | MACRO_BEGIN if (autocvar_developer > 0) assert(__VA_ARGS__); MACRO_END |
#define devassert_once | ( | ... | ) | MACRO_BEGIN if (autocvar_developer > 0) assert_once(__VA_ARGS__); MACRO_END |
#define devdemand | ( | ... | ) | MACRO_BEGIN if (autocvar_developer > 0) demand(__VA_ARGS__); MACRO_END |
#define dprint2 | ( | msg | ) |
#define LOG_DEBUG | ( | ... | ) | _LOG_DEBUG(strcat1n(__VA_ARGS__)) |
Definition at line 85 of file log.qh.
Referenced by _Movetype_Physics_ClientFrame(), autoskill(), CampaignPostIntermission(), compressShotOrigin(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_role_ons_setrole(), Map_Check(), MapInfo_Get_ByName_NoFallbacks(), minigame_autoclean_entity(), MoveToRandomLocationWithinBounds(), navigation_goalrating_end(), navigation_routerating(), navigation_shortenpath(), navigation_unstuck(), NET_HANDLE(), ons_DelayedLinkSetup(), onslaught_updatelinks(), pathlib_astar(), pathlib_makenode_adaptive(), pathlib_walknode(), vehicle_initialize(), vehicle_use(), and vehicles_spawn().
#define LOG_DEBUGF | ( | ... | ) | _LOG_DEBUG(sprintf(__VA_ARGS__)) |
Definition at line 86 of file log.qh.
Referenced by _Movetype_UnstickEntity(), CSQCModel_server2csqc(), CSQCPlayer_FallbackFrame(), CTX(), IL_REMOVE(), and unref().
#define LOG_FATAL | ( | ... | ) | _LOG_FATAL(strcat1n(__VA_ARGS__)) |
Definition at line 58 of file log.qh.
Referenced by draw_ClearClip(), Player_SetForcedTeamIndex(), print_assertfailed_fatal(), PutObserverInServer(), REGISTRY_END(), TeamBalance_CompareTeams(), TeamBalance_FindBestTeam(), TeamBalance_FindBestTeams(), TeamBalance_GetAllowedTeams(), TeamBalance_GetNumberOfPlayers(), TeamBalance_GetTeamCounts(), and TeamBalance_IsTeamAllowed().
#define LOG_FATALF | ( | ... | ) | _LOG_FATAL(sprintf(__VA_ARGS__)) |
Definition at line 59 of file log.qh.
Referenced by _impCheck(), _regCheck(), CSQC_Ent_Update(), CSQCPlayer_Unpredict(), db_dump(), Item_Initialize(), STATIC_INIT(), STATIC_INIT_LATE(), Team_GetTeam(), Team_GetTeamFromIndex(), TeamBalance_CompareTeams(), TeamBalance_FindBestTeam(), TeamBalance_GetNumberOfPlayers(), TeamBalance_GetTeamFromIndex(), and TeamBalance_IsTeamAllowed().
#define LOG_HELP | ( | ... | ) | _LOG_HELP(strcat1n(__VA_ARGS__)) |
Definition at line 95 of file log.qh.
Referenced by BanCommand_ban(), BanCommand_banlist(), BanCommand_kickban(), BanCommand_mute(), BanCommand_unban(), BanCommand_unmute(), bot_cmdhelp(), bot_list_commands(), Cmd_Scoreboard_Help(), DumpStats(), GameCommand(), GameCommand_adminmsg(), GameCommand_allready(), GameCommand_allspec(), GameCommand_animbench(), GameCommand_anticheat(), GameCommand_bbox(), GameCommand_bot_cmd(), GameCommand_cointoss(), GameCommand_database(), GameCommand_defer_clear(), GameCommand_defer_clear_all(), GameCommand_delrec(), GameCommand_effectindexdump(), GameCommand_extendmatchtime(), GameCommand_gametype(), GameCommand_gettaginfo(), GameCommand_gotomap(), GameCommand_lockteams(), GameCommand_make_mapinfo(), GameCommand_moveplayer(), GameCommand_nospectators(), GameCommand_printstats(), GameCommand_radarmap(), GameCommand_reducematchtime(), GameCommand_resetmatch(), GameCommand_setbots(), GameCommand_shuffleteams(), GameCommand_stuffto(), GameCommand_trace(), GameCommand_unlockteams(), GameCommand_warp(), GENERIC_COMMAND(), GenericCommand_addtolist(), GenericCommand_maplist(), GenericCommand_nextframe(), GenericCommand_removefromlist(), GenericCommand_restartnotifs(), GenericCommand_rpn(), GenericCommand_runtest(), GenericCommand_settemp(), GenericCommand_settemp_restore(), LocalCommand_blurtest(), LocalCommand_boxparticles(), LocalCommand_create_scrshot_ent(), LocalCommand_debugmodel(), LocalCommand_handlevote(), LocalCommand_hud(), LocalCommand_localprint(), LocalCommand_mv_download(), LocalCommand_sendcvar(), W_Model(), and write_String_To_File().
#define LOG_HELPF | ( | ... | ) | _LOG_HELP(sprintf(__VA_ARGS__)) |
Definition at line 96 of file log.qh.
Referenced by GameCommand_gettaginfo(), GameCommand_macro_help(), GENERIC_COMMAND(), GenericCommand_macro_help(), and LocalCommand_macro_help().
#define LOG_INFO | ( | ... | ) | _LOG_INFO(strcat1n(__VA_ARGS__)) |
Definition at line 70 of file log.qh.
Referenced by _MapInfo_Generate(), _mutPrintFail(), Accuracy_LoadLevels(), Ban_Insert(), Ban_View(), BanCommand_kickban(), BanCommand_mute(), BanCommand_unmute(), bd_close_editor(), bd_load_level(), bd_move(), bd_save_level(), bot_cmd_debug_assert_canfire(), bot_cmd_eval(), bot_cmd_if(), bot_decodecommand(), bot_execute_commands_once(), bot_getplace(), botframe_autowaypoints_fix(), botframe_autowaypoints_fix_from(), CampaignBailout(), CheatImpulse(), CheckPlayerJump(), Cmd_MapVote_MapDownload(), Cmd_Scoreboard_SetFields(), CommonCommand_editmob(), CSQCPlayer_PredictTo(), Curl_URI_Get_Callback(), GameCommand(), GameCommand_adminmsg(), GameCommand_allready(), GameCommand_allspec(), GameCommand_animbench(), GameCommand_anticheat(), GameCommand_bot_cmd(), GameCommand_database(), GameCommand_defer_clear(), GameCommand_defer_clear_all(), GameCommand_effectindexdump(), GameCommand_gettaginfo(), GameCommand_gotomap(), GameCommand_moveplayer(), GameCommand_printstats(), GameCommand_stuffto(), GameCommand_trace(), GameCommand_warp(), GameItem::GameItem ::show(), GENERIC_COMMAND(), GenericCommand_maplist(), GenericCommand_qc_curl(), GenericCommand_restartnotifs(), GenericCommand_rpn(), GetCvars(), GotoFirstMap(), HUD_Vote(), InitGameplayMode(), LocalCommand_blurtest(), LocalCommand_create_scrshot_ent(), make_mapinfo_Think(), MapInfo_LoadMap(), MapList_LoadMap(), MUTATOR_HOOKFUNCTION(), OnlineBanList_URI_Get_Callback(), Portal_FindSafeOrigin(), Portal_TeleportPlayer(), print_Effect_Index(), QuickMenu_Open(), RadarMap_Make(), RedirectionThink(), REGISTER_MUTATOR(), relocate_spawnpoint(), RemoveTeam(), rpn_get(), rpn_pop(), rpn_push(), rpn_set(), RUN_ALL_TESTS(), sandbox_Database_Load(), Say(), shuffleteams(), Shutdown(), Simple_TeleportPlayer(), spawnfunc(), StartFrame(), teleport_findtarget(), updateCompression(), UpdateNotification_URI_Get_Callback(), URI_Get_Callback(), url_fclose(), url_multi_fopen(), url_multi_ready(), url_single_fopen(), url_URI_Get_Callback(), VoteCommand_checkargs(), W_SetupProjVelocity_Explicit(), W_SetupShot_Dir_ProjectileSize_Range(), WarpZone_PostTeleportPlayer_Callback(), WarpZone_Projectile_Touch(), WarpZone_Teleport(), WarpZone_Touch(), waypoint_clear_start_wp_globals(), waypoint_load_hardwiredlinks(), waypoint_loadall(), waypoint_remove_fromeditor(), waypoint_spawn(), waypoint_spawn_fromeditor(), waypoint_start_hardwiredlink(), waypoint_unreachable(), and WeaponStats_ready().
#define LOG_INFOF | ( | ... | ) | _LOG_INFO(sprintf(__VA_ARGS__)) |
Definition at line 71 of file log.qh.
Referenced by _Movetype_PushMove(), Ban_MaybeEnforceBan(), BanCommand_ban(), BanCommand_kickban(), BanCommand_mute(), BanCommand_unmute(), BGMScript_InitEntity(), bot_decodecommand(), bot_execute_commands_once(), bot_setnameandstuff(), CheckSendCvars(), Close_Clicked(), Cmd_Scoreboard_SetFields(), Create_Notification_Entity(), Create_Notification_Entity_Annce(), Create_Notification_Entity_Choice(), Create_Notification_Entity_InfoCenter(), Create_Notification_Entity_Multi(), CSQC_Ent_Remove(), CSQC_Ent_Update(), CSQC_Parse_CenterPrint(), CSQC_Parse_Print(), CSQC_Parse_StuffCmd(), CSQC_Parse_TempEntity(), CSQCPlayer_ModelAppearance_PostUpdate(), cvar_settemp(), cvar_settemp_restore(), damage_explosion_calcpush(), Dump_Weapon_Settings(), GameCommand_adminmsg(), GameCommand_animbench(), GameCommand_anticheat(), GameCommand_bbox(), GameCommand_bot_cmd(), GameCommand_database(), GameCommand_defer_clear(), GameCommand_delrec(), GameCommand_gametype(), GameCommand_gettaginfo(), GameCommand_gotomap(), GameCommand_moveplayer(), GameCommand_radarmap(), GameCommand_setbots(), GameCommand_stuffto(), GameCommand_trace(), GENERIC_COMMAND(), GenericCommand_addtolist(), GenericCommand_maplist(), GenericCommand_removefromlist(), GenericCommand_restartnotifs(), GenericCommand_settemp(), HUD_Panel_ExportCfg(), LocalCommand_boxparticles(), LocalCommand_handlevote(), LocalCommand_hud(), LocalCommand_localprint(), LocalCommand_mv_download(), LocalCommand_sendcvar(), NET_HANDLE(), Pickup::Pickup ::show(), Process_Notif_Args(), Process_Notif_Line(), QuickMenu_Open(), RadiusDamageForSource(), relocate_nexball(), relocate_spawnpoint(), RUN_ALL_TESTS(), SL_ProcessCategoryOverrides(), spawnfunc(), TEST(), TEST_Run(), turret_draw2d(), URI_Get_Callback(), url_URI_Get_Callback(), View_Ortho(), W_Model(), waypoint_loadall(), waypoint_remove_fromeditor(), waypoint_save_hardwiredlinks(), waypoint_save_links(), waypoint_saveall(), waypoint_spawn_fromeditor(), waypoint_start_hardwiredlink(), and waypoint_unreachable().
#define LOG_SEVERE | ( | ... | ) | _LOG_SEVERE(strcat1n(__VA_ARGS__)) |
Definition at line 62 of file log.qh.
Referenced by MapInfo_LoadMapSettings(), print_assertfailed_severe(), Promise_reject(), Promise_resolve(), and REGISTRY_END().
#define LOG_SEVEREF | ( | ... | ) | _LOG_SEVERE(sprintf(__VA_ARGS__)) |
Definition at line 63 of file log.qh.
Referenced by MapInfo_LoadMapSettings(), Promise_reject(), Promise_resolve(), and STATIC_INIT().
#define LOG_TRACE | ( | ... | ) | _LOG_TRACE(strcat1n(__VA_ARGS__)) |
Definition at line 81 of file log.qh.
Referenced by _MapInfo_FilterGametype(), _MapInfo_Generate(), _MapInfo_Parse_Settemp(), activate_minigame(), Ban_Insert(), bot_aim(), bot_clearqueue(), CommonCommand_timein(), CSQCModel_AutoTagIndex_Apply(), ctf_DelayedInit(), ctf_FlagThink(), ctf_Handle_Pickup(), cvar_settemp(), DistributeEvenly_Init(), dom_DelayedInit(), draw_Text(), end_minigame(), findnearest(), GameCommand_adminmsg(), GameTypeVote_Finished(), GENERIC_COMMAND(), GenericCommand_settemp(), GenericCommand_settemp_restore(), havocbot_chooserole(), havocbot_moveto(), havocbot_movetogoal(), havocbot_role_ctf_setrole(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_kh_carrier(), havocbot_role_kh_defense(), havocbot_role_kh_freelancer(), havocbot_role_kh_offense(), HUD_Main(), invasion_SpawnChosenMonster(), Item_FindTeam(), ItemSend(), LinkDoors(), m_init(), m_keydown(), m_keyup(), MapHasRightSize(), MaplistMethod_Iterate(), MaplistMethod_Random(), MaplistMethod_Repeat(), MaplistMethod_Shuffle(), minigame_read_owner(), MUTATOR_HOOKFUNCTION(), nb_spawnteam(), NET_HANDLE(), nmm_in_mill(), OnlineBanList_URI_Get_Callback(), pathlib_astar(), pathlib_close_node(), pathlib_expandnode_star(), pathlib_walknode(), pathlib_waypointpath(), pathlib_waypointpath_step(), PlayerJump(), prandom(), psrandom(), REGISTER_MUTATOR(), ResetBall(), Shutdown(), skeleton_loadinfo(), Spawn_Score(), start_minigame(), STATIC_INIT(), SUB_NoImpactCheck(), superspec_save_client_conf(), tdm_DelayedInit(), updateConwidths(), UpdateNotification_URI_Get_Callback(), vehicles_exit(), viewloc_PlayerPhysics(), W_Reload(), WarpZone_Touch(), WarpZone_TraceBox_ThroughZone(), WarpZone_TraceToss_ThroughZone(), WarpZoneLib_BoxTouchesBrush_Recurse(), waypoint_load_hardwiredlinks(), waypoint_load_links(), waypoint_loadall(), waypoint_save_hardwiredlinks(), waypoint_spawn(), WinningCondition_LMS(), XonoticResolutionSlider_loadResolutions(), and XonoticStatsList_getStats().
#define LOG_TRACEF | ( | ... | ) | _LOG_TRACE(sprintf(__VA_ARGS__)) |
Definition at line 82 of file log.qh.
Referenced by CategoryForEntry(), CSQC_Init(), Curl_URI_Get_Callback(), findnearest(), Label_recalcPositionWithText(), LoadPlayerSounds(), m_init(), Mutator_Add(), Mutator_Remove(), NET_HANDLE(), Obituary_WeaponDeath(), profile(), SetTeam(), STATIC_INIT(), SUB_NoImpactCheck(), sys_phys_land(), and UpdateNotification_URI_Get_Callback().
#define LOG_WARN | ( | ... | ) | _LOG_WARN(strcat1n(__VA_ARGS__)) |
Definition at line 66 of file log.qh.
Referenced by _MapInfo_Generate(), _MapInfo_Parse_Settemp(), CSQC_Ent_Remove(), IL_INIT(), Local_Notification_WOVA(), MapInfo_Get_ByName_NoFallbacks(), PlayerScore_Add(), PlayerScore_Set(), and STATIC_INIT().
#define LOG_WARNF | ( | ... | ) | _LOG_WARN(sprintf(__VA_ARGS__)) |
Definition at line 67 of file log.qh.
Referenced by _MapInfo_Map_ApplyGametypeEx(), _Sound_fixpath(), Create_Notification_Entity_InfoCenter(), db_save(), GENERIC_COMMAND(), Get_Notif_Ent(), Get_Notif_TypeName(), GetAmmoItem(), GetField_fullspawndata(), LoadPlayerSounds(), Local_Notification(), Local_Notification_WOVA(), MapInfo_LoadMapSettings(), MapInfo_Type_FromString(), Model::Model ::model_precache(), MX_Messages_(), MX_Sync_(), NET_HANDLE(), PrecachePlayerSounds(), QuickMenu_Open(), QuickMenu_Page_Load(), RandomItems_GetItemReplacementClassNames(), RandomItems_GetRandomInstagibItemClassName(), RandomItems_GetRandomItemClassNameWithProperty(), RandomItems_GetRandomOverkillItemClassName(), RandomItems_GetRandomVanillaItemClassName(), STATIC_INIT(), W_Model(), and W_WeaponFrame().
string | ( | string | , |
string... | |||
) |
noref int autocvar_developer |
Definition at line 102 of file log.qh.
Referenced by DebugPrintToChat(), DebugPrintToChatAll(), DebugPrintToChatTeam(), Shutdown(), STATIC_INIT(), and waypoint_spawn().