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
 Convert dot to -> in C/C++ not work!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

qokelate
Starting Member

1 Posts

Posted - Nov 10 2019 :  01:57:37 AM  Show Profile  Reply with Quote

If var define in macro, it not work!

#define SCENewTmpInstance2(x, y) auto __tmpobj_##x##_##y = x(); auto y = &__tmpobj_##x##_##y;

SCENewTmpInstance2(SCEObject, tmp1);
tmp1.append //Not work !!!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 11 2019 :  01:01:30 AM  Show Profile  Reply with Quote
It seems to work for me. Can you please try with the following code snippets?




class SCEObject
{
	int a;
};

void ffffffff()
{
#define SCENewTmpInstance2(x, y) auto __tmpobj_##x##_##y = x(); auto y = &__tmpobj_##x##_##y;

	SCENewTmpInstance2(SCEObject, tmp1);
	tmp1.
}


Does this simplified example works for you?
Go to Top of Page
  Previous Topic 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