1 /*****************************************************************************
2  * $LastChangedDate: 2011-04-09 21:58:06 -0400 (Sat, 09 Apr 2011) $
3  * @file
4  * @author  Jim E. Brooks  http://www.palomino3d.org
5  * @brief   Macros for modules.
6  *//*
7  * LEGAL:   COPYRIGHT (C) 2009 JIM E. BROOKS
8  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
9  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
10  *****************************************************************************/
11 
12 #ifndef BASE_MODULE_MACROS_HH
13 #define BASE_MODULE_MACROS_HH 1
14 
15 // For Init() of a module (if applicable).
16 #define MODULE_INIT_LOAD_CONF_TXT( MODULE )                                             \
17 {{                                                                                      \
18     /* Load text conf file into Conf struct. */                                         \
19     const string confTxtFilename = GetConfTxtFilename( initArgs.mProgramName );         \
20                                                                                         \
21     /* Not CONF macro since mValid isn't true yet. */                                   \
22     MODULE::global::gConf.Init( initArgs, confTxtFilename );                            \
23 }}
24 
25 #endif // BASE_MODULE_MACROS_HH
26