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
 Feature Requests
 Using macro for class and "alt+m"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jul 30 2013 :  01:01:47 AM  Show Profile  Reply with Quote
Hello.
I use simple marcos:

#define CPP_INTERFACE( Name ) class Name \{					 \protected:				 \	virtual ~Name() {};		 \public:

#define  CPP_INTERFACE_1( Name, Interface1 ) class Name : public Interface1	\{										\protected:									\	virtual ~Name() {};							\public:

then in header:

CPP_INTERFACE_1( IName, IOther )
	virutal void Foo() = 0;
};


For this header "alt+m" doesn't work as for 'pure' code without macro, the same problem in VS Outline
It is possible to enable parsing macro in special register key or... i don't know?

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jul 30 2013 :  11:24:54 AM  Show Profile  Reply with Quote
Unfortunately no. There are settings to help with macro parsing problems, but they are not helping here. VA still has some problems when using a macro to declare a class name, as you are seeing:

case=9589

if we were able to change the macros we should be able to work around this, but it might be simpler to remove these two problem macros from your code. It depends on how often you use them, and how many problems this is causing.

zen is the art of being at one with the two'ness
Go to Top of Page

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jul 30 2013 :  12:40:48 PM  Show Profile  Reply with Quote
I use it anywhere where i can, i like it... ech
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jul 31 2013 :  1:39:56 PM  Show Profile  Reply with Quote
This is on our list of bugs to fix, but unfortunately I don't currently have an estimate for when this be fixed.

zen is the art of being at one with the two'ness
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