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
 __cpuid() underlined in red
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - Jun 18 2007 :  05:03:15 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jun 18 2007 :  11:43:20 AM  Show Profile  Reply with Quote
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

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

khb
Tomato Guru

Germany
337 Posts

Posted - Jun 19 2007 :  02:48:49 AM  Show Profile  Reply with Quote
Thank you for the detailed workaround!

Regards,
Marcus.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 17 2011 :  11:54:44 PM  Show Profile  Reply with Quote
case=7146 is fixed in build 1845

Whole Tomato Software, Inc.
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