Re: [gtk-list] Re: gtk_bin and Frame problem






> 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]