Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
 

Talk:Debugging leaves

From Forum Nokia Wiki

I think the following way looks more simple and also is a bit more correct:

#define __LEAVE_IF_ERR(_c) ((_c >= 0) || (({__BREAKPOINT(); User::Leave(_c);}), 0))

The __BREAKPOINT macro is defined in e32def.h.

ivey


Purely out of curiosity: what do these assembly statements do? On Windows and on the target platform. Thanks!

Tote

to Tote: int 3 - is the breakpoint.

to Ivey: In you proposal statement _c is executed two times if leave occurs. If you wrap Int32 SomeFunction() to macro then the function would be called twice.

Alones 14:01, 21 August 2007 (UTC)


Well, I already know that __BREAKPOINT is indeed an int 3. But I still don't know what this interrupt does in practice? On Windows. And what about the target platform? Thanks!
Tote


Thanks for the comment, Alones! I have really missed it.
ivey
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia 
RDF Facets: qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX