diff options
author | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-12-01 12:12:12 +0000 |
---|---|---|
committer | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-12-01 12:12:12 +0000 |
commit | 46258fc1bfc932ddd6fd4513f1c5cfdf6c7a1c6b (patch) | |
tree | f3c0ef76b0ea009c226f0c8a9e0312426578573b | |
parent | 4c7c5eaf2df859cbff96ce635aef26d5a10f1fe9 (diff) |
new test option
svn path=/trunk/externals/pmpd/; revision=17384
-rw-r--r-- | pmpd2d_test.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pmpd2d_test.c b/pmpd2d_test.c index 74dd844..c2a705e 100644 --- a/pmpd2d_test.c +++ b/pmpd2d_test.c @@ -186,6 +186,16 @@ int test_2d_mass(int i, t_pmpd2d *x, int argc, t_atom *argv) if ( tmp != atom_getfloatarg(j+2,argc,argv) ) { return(0); } j+=3; } + else if ( atom_getsymbolarg(j,argc,argv) == gensym("numInf") ) + { + if ( i >= atom_getfloatarg(j+1,argc,argv) ) { return(0); } + j+=2; + } + else if ( atom_getsymbolarg(j,argc,argv) == gensym("numSup") ) + { + if ( i < atom_getfloatarg(j+1,argc,argv) ) { return(0); } + j+=2; + } else { pd_error(x, "Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name); @@ -308,6 +318,16 @@ int test_2d_link(int i, t_pmpd2d *x, int argc, t_atom *argv) j+=1; } } + else if ( atom_getsymbolarg(j,argc,argv) == gensym("numInf") ) + { + if ( i >= atom_getfloatarg(j+1,argc,argv) ) { return(0); } + j+=2; + } + else if ( atom_getsymbolarg(j,argc,argv) == gensym("numSup") ) + { + if ( i < atom_getfloatarg(j+1,argc,argv) ) { return(0); } + j+=2; + } else { pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name); |