void ClientCommand_macro_help()
{
- #define CLIENT_COMMAND(name,function) function;
+ #define CLIENT_COMMAND(name,function) \
+ { function; }
+
CLIENT_COMMANDS_1(CC_REQUEST_HELP, 0, "")
CLIENT_COMMANDS_2(CC_REQUEST_HELP, 0, "")
CLIENT_COMMANDS_3(CC_REQUEST_HELP, 0, "")
float ClientCommand_macro_command(float argc, string command)
{
- #define CLIENT_COMMAND(name,function) if(name == strtolower(argv(0))) { function; return TRUE; }
+ #define CLIENT_COMMAND(name,function) \
+ { if(name == strtolower(argv(0))) { function; return TRUE; } }
+
CLIENT_COMMANDS_1(CC_REQUEST_COMMAND, argc, command)
CLIENT_COMMANDS_2(CC_REQUEST_COMMAND, argc, command)
CLIENT_COMMANDS_3(CC_REQUEST_COMMAND, argc, command)
float ClientCommand_macro_usage(float argc, string command)
{
- #define CLIENT_COMMAND(name,function) if(name == strtolower(argv(1))) { function; return TRUE; }
+ #define CLIENT_COMMAND(name,function) \
+ { if(name == strtolower(argv(1))) { function; return TRUE; } }
+
CLIENT_COMMANDS_1(CC_REQUEST_USAGE, argc, command)
CLIENT_COMMANDS_2(CC_REQUEST_USAGE, argc, command)
CLIENT_COMMANDS_3(CC_REQUEST_USAGE, argc, command)
SERVER_COMMAND("warp", GameCommand_warp(request, arguments)) \
/* nothing */
+/*void GameCommand_macro_init()
+{
+ #define SERVER_COMMAND(name,function) \
+ { registercmd(name); print("Initializing ", name, " game command..."); }
+
+ SERVER_COMMANDS_1(GC_REQUEST_HELP, 0)
+ SERVER_COMMANDS_2(GC_REQUEST_HELP, 0)
+ SERVER_COMMANDS_3(GC_REQUEST_HELP, 0)
+ #undef SERVER_COMMAND
+
+ return;
+}*/
+
void GameCommand_macro_help()
{
- #define SERVER_COMMAND(name,function) function;
+ #define SERVER_COMMAND(name,function) \
+ { function; }
+
SERVER_COMMANDS_1(GC_REQUEST_HELP, 0)
SERVER_COMMANDS_2(GC_REQUEST_HELP, 0)
SERVER_COMMANDS_3(GC_REQUEST_HELP, 0)
float GameCommand_macro_command(float argc)
{
- #define SERVER_COMMAND(name,function) if(name == strtolower(argv(0))) { function; return TRUE; }
+ #define SERVER_COMMAND(name,function) \
+ { if(name == strtolower(argv(0))) { function; return TRUE; } }
+
SERVER_COMMANDS_1(GC_REQUEST_COMMAND, argc)
SERVER_COMMANDS_2(GC_REQUEST_COMMAND, argc)
SERVER_COMMANDS_3(GC_REQUEST_COMMAND, argc)
float GameCommand_macro_usage(float argc)
{
- #define SERVER_COMMAND(name,function) if(name == strtolower(argv(1))) { function; return TRUE; }
+ #define SERVER_COMMAND(name,function) \
+ { if(name == strtolower(argv(1))) { function; return TRUE; } }
+
SERVER_COMMANDS_1(GC_REQUEST_USAGE, argc)
SERVER_COMMANDS_2(GC_REQUEST_USAGE, argc)
SERVER_COMMANDS_3(GC_REQUEST_USAGE, argc)