<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 26. Jan. 2022, 03:18:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have this macro:<br>
<br>
{$define TCallback := TCallback2}<br>
<br>
which gives a long list of these errors.<br>
<br>
warning: Expanding of macros exceeds a depth of 16.<br>
<br>
What does this warning mean and how can I resolve it?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I did not look at the code, so just a guess: the compiler tries to replace the "TCallback" within the "TCallback2" after it applied the macro leading to add infinitum expansions. This would be wrong, cause the macros should work on whole identifiers and not parts of them... </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>