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
 VA-Parser has problems with macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AndreasS
Junior Member

Germany
11 Posts

Posted - Aug 30 2012 :  04:43:02 AM  Show Profile  Reply with Quote
This case is a little bit special.
The context edit-control in the toolbox above the code window in Visual Studio2010 shows the wrong context, if the cursor is in front of a space before int j2;
It seems that VA has a problem with the double marco resolving.
Visual Studio 10 (also 2008), C++ Native. VA=10.7.1912

It shows "f.BRC.try.try.BRC "
It should shows "f "



class TixException
{
public:
TixException();
};


#define os_readonly 1

class OsTransaction
{
public:
class NoTransactionException
{
public:
NoTransactionException();
};


public:
OsTransaction(int mode);
void Commit();
bool HasCommitted();
void Abort(TixException& e);
};


#define os_begin_txn_( mode ) \ { \ bool _bHasCommitted = false; \ try{ \ OsTransaction transaction( mode ); \ try{ \ {




#define os_end_txn_has_committed(pbHasCommitted) \ } \ transaction.Commit(); \ (void) _bHasCommitted; \ if (pbHasCommitted) \ *(pbHasCommitted) = transaction.HasCommitted(); \ } \ catch( TixException& e ){ \ if (pbHasCommitted) \ *(pbHasCommitted) = transaction.HasCommitted(); \ transaction.Abort(e); \ } \ } \ catch(OsTransaction::NoTransactionException){ \ } \ }


#define os_end_txn_() \ os_end_txn_has_committed(&_bHasCommitted)



void f()
{
bool b;
int j0;

os_begin_txn_(os_readonly)
{

}
os_end_txn_has_committed(&b);

int j1;

os_begin_txn_(os_readonly)
{

}
os_end_txn_();

int j2;
}

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - Aug 30 2012 :  4:21:59 PM  Show Profile  Reply with Quote
Can you please try enabling deep macro parsing, as explained in this FAQ entry:

http://docs.wholetomato.com?W363

this has fixed this problem for me, so hopefully this will help you.

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

AndreasS
Junior Member

Germany
11 Posts

Posted - Aug 31 2012 :  03:32:19 AM  Show Profile  Reply with Quote
Thank you, that hepls.

Is it posible to send screenshot to the forum?
And how can I send code examples with tab characters, so it is more read frindly?

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19147 Posts

Posted - Aug 31 2012 :  09:39:29 AM  Show Profile  Reply with Quote
To send a screen shot, if you are creating a "New Topic" then look for the option "Insert an Image", at the bottom of the edit control where you type the topic description.

This will let you attach a .gif, .jpg, .jpeg, or .png image, with a maximum size of 100KB.

If you are replying to a forum topic, then instead of using the "Quick Reply" field at the bottom of the topic, use the "Reply to Topic" link, to get the full reply options, including the "Insert an Image" link.


When posting code, again use the "Reply to Topic" link, which will give you the formatting controls. Select the code in your reply and press the # button in the Format section, which is the "Insert Code" button. This will wrap the code in [ code ] [ /code ] tags.

I hope this all makes sense and is clear :)

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