typedef struct {
int a, b;
} testStruct;
#define TESTDEFINE (*((testStruct*)0x04000008))
Take the above code for example
why does the following work the way it should by showing the members of the struct:
(*((testStruct*)0x04000008)). // <-- notice the dot
but this does not:
TESTDEFINE. // <-- notice the dot
Shouldn't it work just as well?? (I'm talking about the little window that appears showing the members of the struct when you put the "." after the identifier). I know that this is a very special case but still, if the former example works why shouldn't the latter one? Anyway, I hope you can help me.
I do really doubt the current implementation of Code-Completion does any kind of macro-replacement. The good news is that I'm finishing my preprocessor implementation, so it could possibly, just possibly, be used to 'complement' that plugin in the meanwhile.
Quote from: Ceniza on May 19, 2008, 08:36:14 AM
The good news is that I'm finishing my preprocessor implementation, so it could possibly, just possibly, be used to 'complement' that plugin in the meanwhile.
Those are really good news! :D
I have another question concerning code completion.
Code completion doesn't show anything about overloaded member operators. Why?
Actually we do not need to use a code like this:
T1.operator < (T2);
In fact we use it simply by:
T1 < T2;
but assume that I need to know about overloaded member operators of a class before receiving any error from compiler. of course, when I see a message like this : operator < is not implemented for object "TObject T" I understand what it means but code completion can save our time to have a quick view to all overloaded member operators.
Regards
Well, keep in mind Code-Completion is work in progress. There are lots of things that the current implementation doesn't recognise. If you check the list of bugs and feature requests for Code-Completion you'll get an idea of how far from complete it is.
Quote from: Ceniza on May 19, 2008, 08:36:14 AMThe good news is that I'm finishing my preprocessor implementation, so it could possibly, just possibly, be used to 'complement' that plugin in the meanwhile.
Great :D.
All the best
Michael