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
 Feature Requests
 Add option for VAssitX.GotoImplementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Jul 22 2024 :  08:23:40 AM  Show Profile  Reply with Quote
There are many functions in #include <windows.h> that have definitions this:



Would it be possible to add a new VAssistX.GotoImplementation2 command, which will navigate ahead and also bring up the targets referred to by the token on simple #define lines like these?

--
Rick C. Hodgin

Edited by - foxmuldr on Jul 22 2024 08:24:09 AM

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Jul 23 2024 :  08:36:15 AM  Show Profile  Reply with Quote
Have you tried Alt-Shift-G for Goto Related? The related types menu should help here.

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

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Jul 29 2024 :  07:03:17 AM  Show Profile  Reply with Quote
In VA_X.dll file version 10.9.2522.0 built 2024.05.31, this is what I see with Alt-Shift-G:



And when I press enter on Declarations, I see this:



Navigating from one of those choices takes us to those line numbers in that file.

--
Rick C. Hodgin
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Jul 30 2024 :  09:22:58 AM  Show Profile  Reply with Quote
It was worth a try. The idea of using Goto Related here makes sense, so I have put in a feature request to jump to what the macro expands to:

case=164788

that works well enough here, with these simple one line macros, but when you are dealing with more complex macros, I am not sure how well the idea will scale, or work.

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

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Jul 30 2024 :  10:49:49 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline
that works well enough here, with these simple one line macros, but when you are dealing with more complex macros, I am not sure how well the idea will scale, or work.



I would add logic so if it's more than [#][define][whitespace][alpha/alphanumeric][whitespace][alpha/alphanumeric] then don't expand it, but for straight-forward name expansion to the W and A, which we see everywhere, it would be useful.

If you want to get fancier, look for any alpha/alphanumeric tokens after [#][define][whitespace][alpha/alphanumeric][whitespace] and do a lookup on all of them and see if anything comes through.

Can we expect this in the 2024.08.31 build?? :-)

--
Rick C. Hodgin
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Jul 30 2024 :  11:20:17 AM  Show Profile  Reply with Quote
I suspect only having one extra symbol in the macro will be a good rule to try, but that's just a guess at this stage.

You can expect away, but I do suspect you will be disappointed in this expectation

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

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Jul 31 2024 :  08:03:11 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline
You can expect away, but I do suspect you will be disappointed in this expectation



I expected as much. :-)

--
Rick C. Hodgin
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Jul 31 2024 :  09:25:28 AM  Show Profile  Reply with Quote
On the plus side, we have just released a new version. So you can keep on expecting and hoping, so long as you don't actually install VA 2530 and check

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

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Aug 01 2024 :  09:54:07 AM  Show Profile  Reply with Quote
You're too funny, IronLine. :-)

--
Rick C. Hodgin
Go to Top of Page

foxmuldr
Tomato Guru

USA
402 Posts

Posted - Aug 23 2024 :  08:29:01 AM  Show Profile  Reply with Quote
I just had a TIFF library I was compiling, and I noticed this on one of the Alt+G lookups:



Wouldn't it be oh so very lovely and helpful if it continued down with two more entries showing the targets of the #define?

:-)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18958 Posts

Posted - Aug 23 2024 :  10:49:05 AM  Show Profile  Reply with Quote
I have added the picture, as a useful example, to the case. It is something we are considering, but no estimate on when this might be looked at yet.

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