ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/openbabel/oberror.cpp
(Generate patch)

Comparing trunk/src/openbabel/oberror.cpp (file contents):
Revision 751 by gezelter, Thu Nov 17 20:38:45 2005 UTC vs.
Revision 819 by tim, Fri Dec 16 21:52:50 2005 UTC

# Line 113 | Line 113 | Therefore, it is very easy to log errors:
113  
114   \code
115     if (atomIndex < 1 || atomIndex > mol.NumAtoms() )
116 <    obErrorLog.ThrowError(__FUNCTION__, "Requested Atom Out of Range", obDebug);
116 >    obErrorLog.ThrowError(__func__, "Requested Atom Out of Range", obDebug);
117   \endcode
118  
119   or
# Line 122 | Line 122 | or
122       stringstream errorMsg;
123       errorMsg << " Could not parse line in type translation table types.txt -- incorect number of columns";
124       errorMsg << " found " << vc.size() << " expected " << _ncols << ".";
125 <     obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obInfo);
125 >     obErrorLog.ThrowError(__func__, errorMsg.str(), obInfo);
126   \endcode
127  
128 < The __FUNCTION__ builtin is defined by many compilers (e.g., <a
128 > The __func__ builtin is defined by many compilers (e.g., <a
129   href="http://gcc.gnu.org/">GCC</a>) but can be defined to an empty
130   string on some platforms without this compiler extension.
131  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines