diff options
Diffstat (limited to 'externals/grill/flext/source/fldefs.h')
-rw-r--r-- | externals/grill/flext/source/fldefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/externals/grill/flext/source/fldefs.h b/externals/grill/flext/source/fldefs.h index dc99a2e7..be7ac879 100644 --- a/externals/grill/flext/source/fldefs.h +++ b/externals/grill/flext/source/fldefs.h @@ -332,6 +332,9 @@ static bool FLEXT_CALL_PRE(M_FUN)(flext_base *c,int argc,t_atom *argv) \ static bool FLEXT_CALL_PRE(M_FUN)(flext_base *c,void *data) \ { FLEXT_CAST<thisType *>(c)->M_FUN(data); return true; } +//! Set up a timer callback +#define FLEXT_CALLBACK_T(M_FUN) FLEXT_CALLBACK_X(M_FUN) + //! Set up a method callback for a boolean argument #define FLEXT_CALLBACK_B(M_FUN) \ static bool FLEXT_CALL_PRE(M_FUN)(flext_base *c,int &arg1) \ @@ -758,6 +761,11 @@ FLEXT_CADDMETHOD_3(CL,IX,M_TAG,M_FUN,int,int,int) @{ */ +//! Set timer callback +#define FLEXT_ADDTIMER(TMR,M_FUN) \ +\ +TMR.SetCallback(*this,FLEXT_CALL_PRE(M_FUN)) + //! Enable list element distribution over inlets (if no better handler found) #define FLEXT_ADDDIST() \ \ |