|
DUECA/DUSIME
|
Helper struct to add an init function from initialization code. More...
#include <ScriptInterpret.hxx>
Public Member Functions | |
| AddInitFunction (const char *name, voidfunc ifunct, const char *parent=NULL) | |
| Constructor that remembers and adds the init function. | |
Helper struct to add an init function from initialization code.
Use by creating an init function, and a static object to run the initialisation. When the script language is initialized, the init functions are called to make classes and functions available.
| dueca::AddInitFunction::AddInitFunction | ( | const char * | name, |
| voidfunc | ifunct, | ||
| const char * | parent = NULL ) |
Constructor that remembers and adds the init function.
| name | Name of the class or function, as known to the script language. |
| ifunct | Initialisation function. |
| parent | Parent class, if applicable. Information on the parent class is used to initialize classes in the right order. |