ircproxy  The Ultimate Cyborg

casereturnstr.h File Reference


Detailed Description

This file contains the definition of the macro CASERETURNSTR.

For internal use only.

Definition in file casereturnstr.h.

Go to the source code of this file.

Defines

#define CASERETURNSTR(enum_name)   case enum_name: return #enum_name
 Macro for switches that print enums.


Define Documentation

#define CASERETURNSTR ( enum_name   )     case enum_name: return #enum_name

Macro for switches that print enums.

Example:
 switch(n)
 {
   CASERETURNSTR(enum_entry1);
   CASERETURNSTR(enum_entry2);
   // etc. 
 }

Returns:
A string literal of the enumerate n.

Definition at line 33 of file casereturnstr.h.

Referenced by debug::command_name(), debug::match0_type_name(), debug::match1_type_name(), debug::openmode_name(), and debug::state_nt_name().


Copyright © 2005-2007 Carlo Wood.  All rights reserved.