]> www.ginac.de Git - ginac.git/blobdiff - ginac/printraw.cpp
#ifndef around namespace GiNaC { }
[ginac.git] / ginac / printraw.cpp
index 6be1fbfbaef4717a7809c462b83bf30283855b11..331622a7c93b244afdde980c55da7ba7aab3544e 100644 (file)
@@ -1,8 +1,9 @@
 /** @file printraw.cpp
  *
  * print in ugly raw format, so brave developers can have a look at the
- * underlying structure.
- *
+ * underlying structure. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 #include "relational.h"
 #include "series.h"
 #include "symbol.h"
+#include "debugmsg.h"
+
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
 
 void ex::printraw(ostream & os) const
 {
     debugmsg("ex printraw",LOGLEVEL_PRINT);
-    ASSERT(bp!=0);
+    GINAC_ASSERT(bp!=0);
     os << "ex(";
     bp->printraw(os);
     os << ")";
@@ -220,3 +226,7 @@ void matrix::printraw(ostream & os) const
     }
     os << m[row*col-1] << "))";
 }
+
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE