g_return

Derek Atkins warlord at MIT.EDU
Wed Aug 11 12:44:45 EDT 2004


Uh, show me the code that's failing?

I don't THINK you need anything special to get it to print a
warning...  But honestly I'm not 100% sure.

-derek

Neil Williams <linux at codehelp.co.uk> writes:

> Can someone help me find out why my g_return statements are no longer printing 
> messages to the terminal?
>
> I'm getting errors from the rest of GnuCash (if I force the error, it tests OK 
> otherwise) but when I'm testing my merge code (deliberately trying to 
> generate errors), I'm not getting the messages that I would expect, just 
> another seg fault.
> :-(
>
> I've used --enable-debug in autogen but I figure I've missed something in the 
> code. Is a define needed for g_return messages to be seen?
> http://www.codehelp.co.uk/code/source.html
>
> (I'm using g_return_if_fail, g_return_val_if_fail as appropriate.)
>
> I've got two example programs now, the newest one is the first to take genuine 
> GnuCash objects.
> http://www.codehelp.co.uk/code/gnucash.html
>
>
> -- 
>
> Neil Williams
> =============
> http://www.codehelp.co.uk/
> http://www.dclug.org.uk/
> http://www.isbn.org.uk/
> http://sourceforge.net/projects/isbnsearch/
>
> http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list