|
flext 0.6.2
|
Macros | |
| #define | FLEXT_HEADER(NEW_CLASS, PARENT_CLASS) |
| Plain flext class header. | |
| #define | FLEXT_HEADER_T(NEW_CLASS, PARENT_CLASS) |
| #define | FLEXT_HEADER_S(NEW_CLASS, PARENT_CLASS, SETUPFUN) |
| Flext class header with setup function. | |
| #define | FLEXT_HEADER_TS(NEW_CLASS, PARENT_CLASS, SETUPFUN) |
| #define FLEXT_HEADER | ( | NEW_CLASS, | |
| PARENT_CLASS | |||
| ) |
Plain flext class header.
| NEW_CLASS | name of the current C++ class |
| PARENT_CLASS | name of the base C++ class (e.g. flext_base or flext_dsp) |
| #define FLEXT_HEADER_S | ( | NEW_CLASS, | |
| PARENT_CLASS, | |||
| SETUPFUN | |||
| ) |
Flext class header with setup function.
| NEW_CLASS | name of the current C++ class |
| PARENT_CLASS | name of the base C++ class (e.g. flext_base or flext_dsp) |
| SETUPFUN | setup function, of type "void (*setupfn)(t_class *)" |
The setup function is called after class creation. It corresponds to the original PD "[object]_setup" function, apart from the fact that all necessary class initializations have already been taken care of by flext. The setup function can e.g. be used for a message to the console upon first creation of an object.
| #define FLEXT_HEADER_T | ( | NEW_CLASS, | |
| PARENT_CLASS | |||
| ) |
| #define FLEXT_HEADER_TS | ( | NEW_CLASS, | |
| PARENT_CLASS, | |||
| SETUPFUN | |||
| ) |