Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Macros for STL not working

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
tesshu Posted - Nov 29 2006 : 12:45:24 PM
//==================================================================================================
//==================================================================================================
#include <vector>
//==================================================================================================
//==================================================================================================
#define STL_Vector std::vector

#define STL_DefineVec( _type ) \ typedef STL_Vector<_type> _type##Vec; \ typedef _type##Vec::iterator _type##VecIter; \ typedef _type##Vec::reverse_iterator _type##VecRIter;

#define STL_DefinePtrVec( _type ) \ typedef STL_Vector<_type*> _type##PtrVec; \ typedef _type##PtrVec::iterator _type##PtrVecIter; \ typedef _type##PtrVec::const_iterator _type##PtrVecConstIter; \ typedef _type##PtrVec::reverse_iterator _type##PtrVecRIter;
//==================================================================================================
//==================================================================================================
class SomeClass
{
int foo;
float bar;
};
//==================================================================================================
//==================================================================================================
int main( int argc, void** argv )
{
STL_DefineVec( SomeClass );

// SomeClassVec gives me a red correction line and also doesn't highlight blue (stays black).
// This used to work when I was using VA_X_Setup1293.exe. One thing I did notice was that when
// I forced the database to be rebuilt, it highlights fine with no correction line while the
// database is building. Once the parsing is done it goes back to black and the red correction
// line.
SomeClassVec vecFooBar;

return 0;
}


VA_X.dll file version 10.3.1541.0 built 2006.11.20
Licensed to:
VA X: [email protected] (1-user license) Support ends 2007.11.25
VAOpsWin.dll version 1.3.3.8
VATE.dll version 1.0.5.0
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Courier New 13(Pixels)
Comctl32.dll version 5.81.4968.2500
Windows 2000 5.0 Build 2195 Service Pack 4
Single processor

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft DirectX 9.0 SDK (October 2004)\\Include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\common\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
D:\\DEV\\NVidiaOpenGL\\OpenGL\\Include;

Library Includes:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

Other Includes:


1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 30 2006 : 2:10:37 PM
I am seeing the same effect here. Thank you for the clear description. VA's parser has been re-written since 1293, partly to fix some long standing bugs that could not be fixed in the old parser, and partly to enable us to offer C++ refactoring.

Unfortunately some complex cases were broken in the process, and this seems to be one of them.

case=3873

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