]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an include guard to the forward declaration file.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Feb 1999 17:18:09 +0000 (17:18 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Feb 1999 17:18:09 +0000 (17:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@884 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Make_forward_declarations

index 1c34656d8500c9654bc62b5499a8af93df4c9afd..bc6748a34541806454ceff8352197032f0d7c472 100644 (file)
@@ -8,12 +8,20 @@ while ($ARGV[0]) {
 }
 
 
+# generate a guard for the file to disallow multiple inclusion
+$guard = `pwd`;
+$guard =~ s![^\w]!_!g;
+$guard .= "__guard";
+print "#ifndef $guard\n";
+print "#define $guard\n";
+print "\n\n";
+
 foreach $file (@input_files) {
     parse_class_declarations ($file);
 };
 
-
-
+print "\n\n";
+print "#endif // $guard\n";
 
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.