You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
znakeeye
Posted - Feb 15 2010 : 04:01:54 AM VAX 1738, VS 2008 SP1.
#define ASM_TEST __asm { __noop; }
ASM_TEST <enter>
| <-- indented... argh!
No, I cannot edit the macros since they are part of 3rd party libraries.
5 L A T E S T R E P L I E S (Newest First)
feline
Posted - Feb 15 2010 : 7:38:32 PM The #define did not make sense to me, but ASM is not something that I know about personally. I am seeing the same indenting problem in VS2008 on a machine where VA has never been installed. So it is definitely not a VA problem.
znakeeye
Posted - Feb 15 2010 : 3:20:16 PM Try it inside a constructor or any other place where it makes sense:
CMyClass::CMyClass()
{
ASM_TEST
|
}
feline
Posted - Feb 15 2010 : 11:39:11 AM This is what I have typed, it looks identical to what you have posted here:
I have smart indenting turned on, and the caret is never indented for me when I press Enter.
znakeeye
Posted - Feb 15 2010 : 10:27:44 AM I have "Smart" indenting. Always have.
Are you sure you typed it exactly as seen above? That is, NO semicolon or similar!
Anyway, disabling VAX does not make the problem go away. I guess it's a VC9 bug :/
feline
Posted - Feb 15 2010 : 09:24:54 AM Do you have to type this in a specific context to get this intending problem? I have just tried typing these two lines into a cpp file and I am not getting this indenting problem.
But please remember that mostly the IDE is responsible for indenting, and you need to look at the IDE options for how the caret is indented on the next line:
IDE tools menu -> Options -> Text Editor -> C/C++ -> Tabs -> Indenting = ...