[Gridflow-cvs] [svn] commit: r4002 - /trunk/base/source_filter.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Jul 10 11:57:17 EDT 2008


Author: matju
Date: Thu Jul 10 11:57:17 2008
New Revision: 4002

Log:
introduce THISCLASS macro (and the need to use "#" to mark line numbers... sorry)

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Thu Jul 10 11:57:17 2008
@@ -65,7 +65,7 @@
 	q=ClassDecl.new(classname,superclassname,{},{},{},false)
 	$stack << q
 	$classes << q
-	Out.print "/* begin class */"
+	Out.print "#define THISCLASS #{classname}\n\# #{$linenumber}\n"
 	if rest and /^\{/ =~ rest then
 		Out.print "struct #{classname} "
 		Out.print ": #{superclassname}" if superclassname
@@ -280,7 +280,7 @@
 	}
 	if /^class\s*(\w+\s+)?\{(.*)/ =~ line then handle_classinfo("{"+$2) end
 	$stack.pop
-	Out.print " /*end class*/ "
+	Out.print "\n#undef THISCLASS\n\# #{$linenumber}\n"
 end
 
 def handle_startall(line)



More information about the Gridflow-cvs mailing list