ircproxy The Ultimate Cyborg |
00001 // edragon -- A file share application. 00002 // 00003 //! @internal 00004 //! @file casereturnstr.h 00005 //! @brief This file contains the definition of the macro CASERETURNSTR. 00006 // 00007 // Copyright (C) 2004, by 00008 // 00009 // Carlo Wood, Run on IRC <carlo@alinoe.com> 00010 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt 00011 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61 00012 // 00013 // This file may be distributed under the terms of the Q Public License 00014 // version 1.0 as appearing in the file LICENSE.QPL included in the 00015 // packaging of this file. 00016 00017 #ifndef CASERETURNSTR_H 00018 #define CASERETURNSTR_H 00019 00020 /*! @brief Macro for switches that print enums. 00021 * 00022 * @example 00023 * switch(n) 00024 * { 00025 * CASERETURNSTR(enum_entry1); 00026 * CASERETURNSTR(enum_entry2); 00027 * // etc. 00028 * } 00029 * @endexample 00030 * 00031 * @returns A string literal of the enumerate \a n. 00032 */ 00033 #define CASERETURNSTR(enum_name) case enum_name: return #enum_name 00034 00035 #endif // CASERETURNSTR_H
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|