Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 An Old problem about “if A_MACRO(x)“
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

superzmy
Senior Member

China
37 Posts

Posted - Dec 23 2025 :  03:14:00 AM  Show Profile  Reply with Quote

#define LIKELY(x) (x)
#define ZZ
class A
{
    void a()
    {
        int x = 0;
        if LIKELY(x) ZZ // remove "ZZ" to watch changing of "VAOutline"
        {

        }
    }
    void b()
    {

    }
};

wihtout "ZZ", VA parse the code wrong.

feline
Whole Tomato Software

United Kingdom
19293 Posts

Posted - Dec 23 2025 :  07:18:51 AM  Show Profile  Reply with Quote
Thank you for the clear example, I have seen odd things like this before, occasionally. I think this is covered by:

case=149467

so I have added this example to the case. Thank you for finding and sharing the work around, that is interesting! I can see people not liking it, but it is good to have the option regardless.

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000