aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/support.hpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-07-14 18:29:52 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:54 +0200
commitc51398d4fcc43ac9d72888191d65f44609f7eb5f (patch)
tree3f7f5e7fdff78218ee6417a07e555096a82dd1a4 /sc4pd/source/support.hpp
parentd0ae3caca5828675335d3b19ab5dd987e7369b23 (diff)
update & bugfix
svn path=/trunk/externals/tb/; revision=1859
Diffstat (limited to 'sc4pd/source/support.hpp')
-rw-r--r--sc4pd/source/support.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/sc4pd/source/support.hpp b/sc4pd/source/support.hpp
index 8456f4d..b6d67a8 100644
--- a/sc4pd/source/support.hpp
+++ b/sc4pd/source/support.hpp
@@ -60,12 +60,26 @@ inline bool sc_add (flext::AtomList a)
inline float sc_getfloatarg (flext::AtomList a,int i)
{
- if (a.Count() >0 || a.Count() <i)
+ if (a.Count() > 0 && a.Count() > i)
return flext::GetAFloat(a[i]);
else
return 0;
}
+inline bool sc_ar(flext::AtomList a)
+{
+ for (int i = 0; i!=a.Count();++i)
+ {
+ if ( flext::IsSymbol(a[i]) )
+ {
+ const char * teststring;
+ teststring = flext::GetString(a[i]);
+ if((strcmp(teststring,"ar"))==0)
+ return true;
+ }
+ }
+ return false;
+}
// macros to put rgen state in registers
#define RGET \