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 1081 by gezelter, Thu Oct 19 20:49:05 2006 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  
# Line 145 | Line 145 | OBMessageHandler::OBMessageHandler() :
145   **/
146  
147   OBMessageHandler::OBMessageHandler() :
148 <  _outputLevel(obWarning), _outputStream(&clog), _logging(true)
148 >  _outputLevel(obWarning), _outputStream(&clog), _logging(true), _maxEntries(100)
149   {
150    //  StartErrorWrap(); // (don't turn on error wrapping by default)
151   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines