From: edgar <edg...@cr...> - 2021-03-22 19:27:08
|
On 2021-03-22 18:26, John Peterson wrote: > The main reason that libmesh_error_msg() and friends are macros is that > they use the __FILE__ and __LINE__ preprocessor defines to help direct > the > user to the exact place in the code where the error was triggered. I'm > not > sure if it is possible to do this same trick with inline functions, > IIRC it > will always report the line where the inline function is defined in the > source rather than the line where it is called. Thank you very much, John. |