[Gridflow-cvs] [svn] commit: r6072 - /trunk/src/source_filter.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Aug 13 11:50:15 EDT 2010


Author: matju
Date: Fri Aug 13 11:50:11 2010
New Revision: 6072

Log:
rien

Modified:
    trunk/src/source_filter.rb

Modified: trunk/src/source_filter.rb
==============================================================================
--- trunk/src/source_filter.rb (original)
+++ trunk/src/source_filter.rb Fri Aug 13 11:50:11 2010
@@ -110,11 +110,10 @@
 
 def handle_attr(line)
 	line.gsub!(/\/\/.*$/,"") # remove comment
-	frame = $stack[-1]
+	frame = $stack[-1]; raise "missing \\class #{where}" if not frame or not ClassDecl===frame
 	type = line.gsub(%r"//.*$","").gsub(%r"/\*.*\*/","").gsub(%r";?\s*$","")
 	virtual = !!type.slice!(/\(\)$/)
 	name = type.slice!(/\w+$/)
-	raise "missing \\class #{where}" if not $stack[-1] or not ClassDecl===frame
 	handle_decl "void ___get(t_symbol *s);" if frame.attrs.size==0
 	frame.attrs[name]=Attr.new(type,name,nil,virtual)
 	if virtual then



More information about the Gridflow-cvs mailing list