From 585f6de9b51870f5f8d60e39979eb43fe3d0e3a7 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 9 Sep 2004 04:00:47 +0000 Subject: "" svn path=/trunk/; revision=2019 --- externals/grill/flext/source/flattr.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'externals/grill/flext/source/flattr.cpp') 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(GetParamSym(GetSymbol(argv[0]),thisCanvas())); - any.st = GetSymbol(argv[0]); + t_atom at; + GetParamSym(at,GetSymbol(argv[0]),thisCanvas()); + any.st = const_cast(GetSymbol(at)); ((methfun_1)a->fun)(this,any); } else ok = false; -- cgit v1.2.1