aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flbuf.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-07 04:58:47 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-07 04:58:47 +0000
commitdad0b0542c08240f4431a34d46e6676461e0d83b (patch)
tree1d4ce3ce8cfe60caec560d0514f6eb4c08defcc3 /externals/grill/flext/source/flbuf.cpp
parented4ce25dc69fd6361f7655a3ab5d05186754316c (diff)
updated for OSX
better templates, some minor changes fix for showing attributes on select (and recreate the object on edit) cleanups svn path=/trunk/; revision=2469
Diffstat (limited to 'externals/grill/flext/source/flbuf.cpp')
-rw-r--r--externals/grill/flext/source/flbuf.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp
index 83ee3ebb..e42015c6 100644
--- a/externals/grill/flext/source/flbuf.cpp
+++ b/externals/grill/flext/source/flbuf.cpp
@@ -28,8 +28,8 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#endif
#if FLEXT_SYS == FLEXT_SYS_MAX
-static const t_symbol *sym_buffer = flext::MakeSymbol("buffer~");
-static const t_symbol *sym_size = flext::MakeSymbol("size");
+static const t_symbol *sym_buffer = NULL;
+static const t_symbol *sym_size = NULL;
#endif
flext::buffer::buffer(const t_symbol *bn,bool delayed):
@@ -42,6 +42,9 @@ flext::buffer::buffer(const t_symbol *bn,bool delayed):
isdirty = false;
ticking = false;
tick = clock_new(this,(t_method)cb_tick);
+#elif FLEXT_SYS == FLEXT_SYS_MAX
+ if(!sym_buffer) sym_buffer = flext::MakeSymbol("buffer~");
+ if(!sym_size) sym_size = flext::MakeSymbol("size");
#endif
if(bn) Set(bn,delayed);
@@ -106,7 +109,7 @@ int flext::buffer::Set(const t_symbol *s,bool nameonly)
FLEXT_ASSERT(!NOGOOD(p));
if(ob_sym(p) != sym_buffer) {
- post("buffer: object '%s' not valid",GetString(sym));
+ post("buffer: object '%s' not valid (type %s)",GetString(sym),GetString(ob_sym(p)));
if(valid) ret = -2;
}
else {