aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flattr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-09-09 04:00:47 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-09-09 04:00:47 +0000
commit585f6de9b51870f5f8d60e39979eb43fe3d0e3a7 (patch)
tree1e5c8e7e0db045fe9fcbb2817f0b3277842e04e7 /externals/grill/flext/source/flattr.cpp
parentb02b33bcca8f01852bf16ad214e2d509e5e14903 (diff)
""
svn path=/trunk/; revision=2019
Diffstat (limited to 'externals/grill/flext/source/flattr.cpp')
-rw-r--r--externals/grill/flext/source/flattr.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/externals/grill/flext/source/flattr.cpp b/externals/grill/flext/source/flattr.cpp
index 30b8fea1..b40a5807 100644
--- a/externals/grill/flext/source/flattr.cpp
+++ b/externals/grill/flext/source/flattr.cpp
@@ -48,6 +48,8 @@ void flext_base::AddAttrib(ItemCont *aa,ItemCont *ma,const char *attr,metharg tp
const t_symbol *asym = MakeSymbol(attr);
AttrItem *a,*b;
+ FLEXT_ASSERT(asym != sym__ && asym != sym_list && asym != sym_float && asym != sym_symbol && asym != sym_anything);
+
if(sfun) // if commented out, there will be a warning at run-time (more user-friendly)
{
a = new AttrItem(asym,tp,sfun,AttrItem::afl_set);
@@ -238,9 +240,9 @@ bool flext_base::SetAttrib(const t_symbol *tag,AttrItem *a,int argc,const t_atom
break;
case a_symbol:
if(argc == 1 && IsSymbol(argv[0])) {
- // \todo shall we analyze the patcher args????
-// any.st = const_cast<t_symbol *>(GetParamSym(GetSymbol(argv[0]),thisCanvas()));
- any.st = GetSymbol(argv[0]);
+ t_atom at;
+ GetParamSym(at,GetSymbol(argv[0]),thisCanvas());
+ any.st = const_cast<t_symbol *>(GetSymbol(at));
((methfun_1)a->fun)(this,any);
}
else ok = false;