diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-03-03 07:57:50 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-03-03 07:57:50 +0000 |
commit | c3ae6e7ab08db709ffa1975eea70bfc9461f1d6a (patch) | |
tree | 04f0076fb51a1ed9ff22b16385e07a4105bb34c3 /externals/grill/flext/source/fldefs.h | |
parent | fe9b0d819d5478fa8256a612f3ba7de44894baf5 (diff) |
""
svn path=/trunk/; revision=448
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() \ \ |