Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 __VA_ARGS__ is not recognized

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
sonai Posted - Jul 04 2016 : 01:38:44 AM
Version Information




1) IDE : Visual Studio Professional 2015 Version 14.0.25123.00 Update 2
2) Version info from VA :
VA_X.dll file version 10.9.2102.0 built 2016.06.02
DevEnv.exe version 14.0.25123.0 Professional
msenv.dll version 14.0.25123.0
Comctl32.dll version 6.10.9600.18006
Windows Server 2012 R2 6.3 Build 9600
4 processors (x86-64, WOW64)
Language info: 949, 0x412

Platform: Project defined
Stable Includes:
C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;
C:\Program Files (x86)\Windows Kits\8.1\Include\shared;
C:\Program Files (x86)\Windows Kits\8.1\Include\um;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include;

Other Includes:

Stable Source Directories:
C:\Program Files (x86)\Windows Kits\10\Source\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\atl;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfcm;
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfc;

Problem Description

My issue is similar to this post(http://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=11669)
I'm using a macro to define enum for simple reflection.
When I use the following macro I can't see suggestions for enum value(which is defined in ESampleEnum by DEF_ENUM)




Also I can't see suggestions for enum value(which is defined in ESampleEnumClass by DEF_ENUM_CLASS)
Of course I can see it with visual studio intellisense.
But is there any solution to see enum value with only visual assist(without visual studio intellisense)?





Plain Code:





#define DEF_ENUM(T, ...) enum T { __VA_ARGS__ }
#define DEF_ENUM_CLASS(T, SIZE, ...) enum class T : SIZE { __VA_ARGS__ }

enum ESampleEnum2 { ECF_Red, ECF_Green};

DEF_ENUM(ESampleEnum, EC_Red, EC_Green, EC_Blue);

DEF_ENUM_CLASS(ESampleEnumClass, int, ED_Up, ED_Down, ED_Right, ED_Left);


int main()
{
ESampleEnum SampleEnumValue = EC_Red;
return 0;
}




3   L A T E S T    R E P L I E S    (Newest First)
ChrisG Posted - Jul 05 2016 : 12:14:33 PM
I expect support will come this year or early next.

But I do not have more information than what I have given you, unfortunately.
sonai Posted - Jul 05 2016 : 06:35:52 AM
Thanks for the quick response.

I have one more question.
Could you share ETA for supporting variadic macros?
I will be very happy if it is available on this year :)
ChrisG Posted - Jul 04 2016 : 1:26:31 PM
Thank you for the clear report.

You are correct that your issue is related to the post you linked.

Currently, variadic macros are still not fully supported in Visual Assist.

Support should be coming within the next few builds.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000