Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 __cpuid() underlined in red

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
khb Posted - Jun 18 2007 : 05:03:15 AM
Whenever I use the compiler intrinsic function __cpuid() in my C++ code it gets underlined in red.

VS2005, WinXP, no other add-ins.

Regards,
Marcus.
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Mar 17 2011 : 11:54:44 PM
case=7146 is fixed in build 1845
khb Posted - Jun 19 2007 : 02:48:49 AM
Thank you for the detailed workaround!

Regards,
Marcus.
feline Posted - Jun 18 2007 : 11:43:20 AM
I am seeing the same effect here. Thank you for the clear description.

case=7146

The problem is caused by the function declaration:

__MACHINEI(void __cpuid(int a[4], int b))

For now the workaround is to edit VA's "StdAfx.h" file as explained in this FAQ entry:

http://docs.wholetomato.com?W302

and add the entry:

#define __MACHINEI(x) x

at the bottom. This file is used to help VA's parser with difficult code, and can be used to work around odd effects. After modifying this file you need to rebuild the VA symbol database for the changes to take effect:

VA Options -> Performance -> General -> Rebuild symbol databases

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