A
ashok.anbalan
Hi,
I am working with a VC++ based tool that does hardware reads & writes
besides some other stuff.
I want to conditionally compile a piece of code based on the value of a
field in a register i.e. only if the bit in the register is set I want
to go ahead & compile the piece of code else it is left untouched.
Basically, this has to happen at the pre-processor stage.
I am unable to use the simple if-else since upon doing that the tool
crashes.
Any hints/directions?
Thanks,
Ashok
I am working with a VC++ based tool that does hardware reads & writes
besides some other stuff.
I want to conditionally compile a piece of code based on the value of a
field in a register i.e. only if the bit in the register is set I want
to go ahead & compile the piece of code else it is left untouched.
Basically, this has to happen at the pre-processor stage.
I am unable to use the simple if-else since upon doing that the tool
crashes.
Any hints/directions?
Thanks,
Ashok