]> www.ginac.de Git - ginac.git/blobdiff - ginac/printcsrc.cpp
- building GiNaC will no longer bomb if Doxygen is not present
[ginac.git] / ginac / printcsrc.cpp
index 2a23ab80b5cac957d1b5294253215e129822cc47..2d0ccfd378d27a4d6965e7823651d791cf466207 100644 (file)
@@ -1,8 +1,9 @@
 /** @file printcsrc.cpp
  *
  *  The methods .printcsrc() are responsible for C-source output of
- *  objects.  All related helper-functions go in here as well.
- *
+ *  objects.  All related helper-functions go in here as well. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -36,6 +37,9 @@
 #include "relational.h"
 #include "series.h"
 #include "symbol.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
 
 /** Print expression as a C++ statement. The output looks like
  *  "<type> <var_name> = <expression>;". The "type" parameter has an effect
@@ -47,7 +51,7 @@
 void ex::printcsrc(ostream & os, unsigned type, const char *var_name) const
 {
     debugmsg("ex print csrc", LOGLEVEL_PRINT);
-    ASSERT(bp!=0);
+    GINAC_ASSERT(bp!=0);
        switch (type) {
                case csrc_types::ctype_float:
                        os << "float ";
@@ -325,3 +329,5 @@ void relational::printcsrc(ostream & os, unsigned type, unsigned upper_precedenc
     if (precedence <= upper_precedence)
                os << ")";
 }
+
+} // namespace GiNaC