| 17 |
|
General Public License for more details. |
| 18 |
|
***********************************************************************/ |
| 19 |
|
|
| 20 |
< |
#include "babelconfig.hpp" |
| 20 |
> |
#include "config.h" |
| 21 |
|
|
| 22 |
|
#if HAVE_IOSTREAM |
| 23 |
|
#include <iostream> |
| 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 |
| 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 |
|
|
| 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 |
|
} |