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.


_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to