This is the mail archive of the c++-embedded@sourceware.cygnus.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Init modules


I sometimes use that way to init my modules.
 if I want to init the arrays and variables i use (i don't always create a class which supply the interface cause the people around me use C routines instead of C++ ), what do you think about it.
 
static int init_module(void)
{
    /* code to init the module */
    return(0);
}
 
static int init_var=init_module();
 
           
    Saffi
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]