Re: [gtk-list] Re: gtk_bin and Frame problem
- From: "Jarl Wijman" <j wijman face nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: gtk_bin and Frame problem
- Date: Mon, 29 Jun 1998 15:22:21 +0200
> This is something that confused me at first too. This is not complaining
>that the widgets are NULL, but it's actually an assertion, that fails.
This
>sort of error should be changed to something like:
>** WARNING **: file gtkbin.c: line 203 (gtk_bin_add): Assertion that
>"bin->child == NULL" has failed.
I'm i mistaken ? I thought the assert function is used at runtime,
not at compiletime :
assert() - verify program assertion
SYNOPSIS
#include <assert.h>
void assert(int expression);
DESCRIPTION
This macro is useful for putting diagnostics into programs. When it
is executed, if expression is false (zero), assert() prints:
Assertion failed: expression, file xyz, line nnn
on the standard error output and aborts. In the error message, xyz
is
the name of the source file and nnn the source line number of the
assert() statement.
Ciao,
Jarl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]