Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Code completion doesnt follow #include in struct
JGM:
--- Quote from: Ceniza on March 28, 2011, 05:25:20 pm ---I guess Edit #2 means that you have solved the issue already.
--- End quote ---
Yep it is working now :wink: Your expression evaluator code is really cool!
--- Quote from: Ceniza on March 28, 2011, 05:25:20 pm ---* If a macro is defined as nothing (empty), the replacement is empty, not "1". I hope it is a placeholder.
--- End quote ---
ohhh
--- Quote from: Ceniza on March 28, 2011, 05:25:20 pm ---* A constant expression is true when it is not 0 (!= 0), not when it is positive (> 0).
--- End quote ---
In other words, negative numbers evaluate to true, didn't supposed that
--- Quote from: Ceniza on March 28, 2011, 05:25:20 pm ---* The code of the ConstExprEvaluator unnecessarily calls the peek function over and over again. It was a quick replacement to get it working. Calling skipWhiteSpace on eval() once and using the current token's value instead of calling peek is more optimal. Additionally, replace the usage of operator ++ by a call to a function that advances the 'iterator' (using operator ++) followed by a call to skipWhiteSpace (call it nextToken).
--- End quote ---
There are also many things on my code that need optimization
Thanks for all your feedback, great source of reference :D
ollydbg:
find some preprocessor source links
https://sourceforge.net/apps/trac/cppcheck/ticket/516
PS: cppcheck has a preprocessor too.
Navigation
[0] Message Index
[*] Previous page
Go to full version