g_return
Neil Williams
linux at codehelp.co.uk
Wed Aug 11 19:03:55 EDT 2004
On Wednesday 11 August 2004 10:33, Derek Atkins wrote:
> Neil Williams <linux at codehelp.co.uk> writes:
> > I even tried g_return_if_fail(1 == 2);
>
> This should definitely trigger...
That's what I figured. (Glad to know I'm not going bonkers).
I have narrowed the problem, somewhat and I think it's not down to a system
config but a makefile config. I must have fiddled once too often with a
Makefile because of this snippet:
int main(int argc, char** argv)
{
gint result;
QofBook *testbook, *mainbook;
Account *testaccount, *testaccount2;
/* engine initialising */
printf("Gnucash Version %i.%i.%i\n", gnucash_major_version(),
gnucash_minor_version(), gnucash_micro_version());
// g_return_val_if_fail((1 == 2), 55);
gnc_engine_init(argc, argv);
g_return_val_if_fail((1 == 2), 55);
As is, that is completely silent, no message at all.
Uncomment the first g_return and the message appears.
** CRITICAL **: file example-gncBookMerge.c: line 158 (main): assertion `(1 ==
2)' failed.
I'm going to rebuild from a pristine CVS tree on Friday (v.busy day Thursday),
copy my files over and start from scratch.
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20040812/977c7aaf/attachment.bin
More information about the gnucash-devel
mailing list