From 18dbae9c9ffe5baa09e220c9f74af2dd7c0aa3f5 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 1 Aug 2003 02:32:50 +0000 Subject: "" svn path=/trunk/; revision=810 --- externals/grill/flext/source/flatom.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'externals/grill/flext/source/flatom.cpp') 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 * -- cgit v1.2.1