| 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 |
|
|