aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flatom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flatom.cpp')
-rw-r--r--externals/grill/flext/source/flatom.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flatom.cpp b/externals/grill/flext/source/flatom.cpp
index 45739e66..afed8dec 100644
--- a/externals/grill/flext/source/flatom.cpp
+++ b/externals/grill/flext/source/flatom.cpp
@@ -91,6 +91,19 @@ int flext::AtomList::Compare(const AtomList &a) const
return Count() < a.Count()?-1:1;
}
+std::string flext::AtomList::Print() const
+{
+ char buffer[256];
+ std::string ret;
+ for(int i = 0; i < Count(); ++i) {
+ char *b = buffer;
+ if(i) *(b++) = ' '; // prepend space
+ PrintAtom((*this)[i],b,sizeof buffer-1);
+ ret += buffer;
+ }
+ return ret;
+}
+
#if FLEXT_SYS != FLEXT_SYS_JMAX
// not for jmax as long as t_symbol * == char *