User:Psycommando/Macros reference: Difference between revisions
Jump to navigation
Jump to search
Psycommando (talk | contribs) (Init) |
Psycommando (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Intro == | == Intro == | ||
Prototype for a complete list of macros links(in the wiki) and infos. | 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 <strong>EVIL</strong>. 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 [http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.5 C++ Faq Lite] describe most of the problem. Be sure to check evil# 1-2-3-4. | |||
== Data map == | == Data map == | ||
== | === Declaration :=== | ||
=== Definition :=== | |||
== Network == | |||
=== IMPLEMENT_NETWORKCLASS_ALIASED === | |||
<ul> | |||
<li>Declaration : ''IMPLEMENT_NETWORKCLASS_ALIASED(className, dataTable)'' </li> | |||
<li>Code : <i>From ..\game\shared\predictable_entity.h</i> | |||
<pre> | |||
#define IMPLEMENT_NETWORKCLASS_ALIASED(className, dataTable) \ | |||
IMPLEMENT_CLIENTCLASS( C_##className, dataTable, C##className )</pre> | |||
</li> | |||
<li>Description : | |||
</li> | |||
</ul> | |||
== Misc == | == Misc == | ||
=== Declaration : === | |||
=== Definition :=== |
Revision as of 12:45, 12 April 2009
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 :