User:Psycommando/Macros reference

From Valve Developer Community
Jump to navigation Jump to search

Intro

Prototype for a complete list of macros links(in the wiki) and infos. All Macros are listed in different categories, and divided in two basic groups, depending if they contain declaration code or contain definition code.


Warning on macros

For those unfamiliar with macros, I must warn you that macros are EVIL. They are basically the equivalent of doing a search and replace at compile time, therefore never ever put an operation as a macro parameter!!! This page C++ Faq Lite describe most of the problem. Be sure to check evil# 1-2-3-4.


Data map

Declaration :

Definition :

Network

IMPLEMENT_NETWORKCLASS_ALIASED

  • Declaration : IMPLEMENT_NETWORKCLASS_ALIASED(className, dataTable)
  • Code : From ..\game\shared\predictable_entity.h
    #define IMPLEMENT_NETWORKCLASS_ALIASED(className, dataTable)			\
    	IMPLEMENT_CLIENTCLASS( C_##className, dataTable, C##className )
  • Description :


Misc

Declaration :

Definition :