<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 9, 2014 at 3:18 AM, Andrew Cramer <span dir="ltr"><<a href="mailto:andrewdalecramer@gmail.com" target="_blank">andrewdalecramer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Rather than maintain them manually one option is to put</div><div><br></div><div>#undef __FUNCT__</div>
<div>#define __FUNCT__ __func__</div><div><br></div><div>at the head of your source files which handles any namespace mangling and ensures that you will always be correct. __func__ is standard for C99 and well supported.</div>
</div></blockquote><div><br></div><div>We cannot count on C99. For example, it is not support by MS.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><br><div class="gmail_quote">On 9 July 2014 01:07, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Tue, 8 Jul 2014, Dominik Szczerba wrote:<br>
<br>
> Suddenly (with no apparent change in the code) I am bombarded with messages<br>
> like:<br>
><br>
> ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:<br>
> __FUNCT__="SetupStiffnessMatrix" does not agree with<br>
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"<br>
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:<br>
<br>
</div>Use __FUNCT__="ScalarSolver::SetupStiffnessMatrix" ?<br>
<br>
__FUNCTION__ is automatically generated by some compilers - but we are<br>
still keeping __FUNCT__ arround - just to support compilers that dont<br>
do this automatically.<br>
<br>
And with compilers that do generate __FUNCTION__ string automatically - we are able<br>
to do this check and print a warning..<br>
<span><font color="#888888"><br>
Satish<br>
</font></span><div><div><br>
<br>
> __FUNCT__="SetupStiffnessMatrix" does not agree with<br>
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"<br>
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:<br>
> __FUNCT__="SetupStiffnessMatrix" does not agree with<br>
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"<br>
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:<br>
> __FUNCT__="SetupStiffnessMatrix" does not agree with<br>
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"<br>
><br>
><br>
> Can you please advise how to fix it?<br>
><br>
> Many thanks<br>
> Dominik<br>
><br>
<br>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>