<html><body><div class="gmail_quote">
    <div dir="ltr" class="gmail_attr">On Jun 14, 2025 at 10:50:46 PM, Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div>
    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
        <div dir="ltr">I may... Need to find some time.<br><br>Also, what do you think about overloading AssertEquals (and the like) taking<br>AssertEqual(<br>   const AnFormatString: string;<br>   const AFormatData: array of const;<br>   AnExpect,<br>   AnActual: TFoo<br>)<br>?</div></blockquote></div><div dir="ltr"><br></div><div dir="ltr">Curious, if the function was actually inline wouldn’t the condition be tripped and exit before calling the format call which was passed in? FPC often fails to inline for various reason so if it can’t I agree your solution makes sense.</div><div dir="ltr"><br></div><div dir="ltr">I had this same problem before when trying to test some metrics. I think I decided to use PChar even to ensure I only passed string constants and avoided some copies.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,</div>    Ryan Joseph</div></div><br>
</div></body></html>