← Back to team overview

dolfin team mailing list archive

[noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 5575: Add comment about dolfin_ prefix.]

 

I've removed all dolfin_ functions except for dolfin_debug and
dolfin_not_implemented which are both macros and therefore can't be
placed inside the dolfin namespace.

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 5575
committer: Anders Logg <logg@xxxxxxxxx>
branch nick: dolfin
timestamp: Mon 2011-01-24 15:03:36 +0100
message:
  Add comment about dolfin_ prefix.
modified:
  dolfin/log/log.h


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
=== modified file 'dolfin/log/log.h'
--- dolfin/log/log.h	2011-01-21 11:43:43 +0000
+++ dolfin/log/log.h	2011-01-24 14:03:36 +0000
@@ -4,7 +4,7 @@
 // Modified by Ola Skavhaug, 2007, 2009.
 //
 // First added:  2003-03-13
-// Last changed: 2011-01-21
+// Last changed: 2011-01-24
 
 #ifndef __LOG_H
 #define __LOG_H
@@ -90,6 +90,10 @@
 
 }
 
+// The following two macros are the only "functions" in DOLFIN
+// named dolfin_foo. Other functions can be placed inside the
+// DOLFIN namespace and therefore don't require a prefix.
+
 // Debug macros (with varying number of arguments)
 #define dolfin_debug(msg)              do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg); } while (false)
 #define dolfin_debug1(msg, a0)         do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg, a0); } while (false)


--- End Message ---

Follow ups