Commit 1cd63717 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@204 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 2b253354
......@@ -548,6 +548,9 @@ typedef void (*methfun_5)(flext_base *c,t_any &,t_any &,t_any &,t_any &,t_any &)
bool flext_base::m_methodmain(int inlet,const t_symbol *s,int argc,t_atom *argv)
{
#ifdef MAXMSP
static bool trap = false;
#endif
bool ret = false;
LOG3("methodmain inlet:%i args:%i symbol:%s",inlet,argc,s?s->s_name:"");
......@@ -639,18 +642,21 @@ bool flext_base::m_methodmain(int inlet,const t_symbol *s,int argc,t_atom *argv)
#ifdef MAXMSP
// If float message is not explicitly handled: try int handler instead
if(!ret && argc == 1 && s == sym_float) {
if(!ret && argc == 1 && s == sym_float && !trap) {
t_atom fl;
SetInt(fl,GetAInt(argv[0]));
post("int: %i",GetInt(fl));
trap = true;
ret = m_methodmain(inlet,sym_int,1,&fl);
trap = false;
}
// If int message is not explicitly handled: try float handler instead
if(!ret && argc == 1 && s == sym_int) {
if(!ret && argc == 1 && s == sym_int && !trap) {
t_atom fl;
SetFloat(fl,GetAFloat(argv[0]));
trap = true;
ret = m_methodmain(inlet,sym_float,1,&fl);
trap = false;
}
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment