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
 Joke
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Nov 04 2013 :  02:55:24 AM  Show Profile  Reply with Quote
I have tried following joke with VA X 2001 and it seems that keywords are still blue even they are defined as macros.

#ifndef AVOID_JOKE
#define while if
#define true false
#endif

As far as I remeber, it was working... or not?

To clarify what I consider working:
I consider working, when anything #defined has a color for Preprocessor macros defined in VA X Options.

Edited by - Dusan on Nov 04 2013 11:17:56 AM

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Nov 04 2013 :  7:47:05 PM  Show Profile  Reply with Quote
This might be a silly question, but why do you want VA to colour some keywords like macros? You can change the colour of keywords in the IDE font and colour options after all.

Remember, keywords are a hard coded list, so VA is not expecting to see them redefined as macros.

Do you have any idea of when you saw this working? In which version of VA and which IDE? I can test an older version if you have some idea.

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

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Nov 05 2013 :  12:26:04 AM  Show Profile  Reply with Quote
You should know a background:

One day my friend (co-worker) wanted to be funny, so he added such definitions to his header file. I do not remeber how, but I believe that thanks to VAX I found what was going on. Now I have made the same and it seems to not work. That's all. I agree that it is not necessary :)

However, sometimes may happen that somebody makes such define for testing purposes and forgets to udefine it. Ofcourse not such stupid define as are that joke :).

Let's forget it :)

Edited by - Dusan on Nov 05 2013 12:27:17 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Nov 07 2013 :  5:29:02 PM  Show Profile  Reply with Quote
OK, so long as you are happy. It is a fairly obscure situation, and hopefully things like this don't happen to often.

zen is the art of being at one with the two'ness
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