mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
Include implementation of g_return_if_fail_internal().
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com> * glib/gmessages.c (g_return_if_fail_warning): Include implementation of g_return_if_fail_internal().
This commit is contained in:
parent
f43458e3a2
commit
7782c17f37
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmessages.c (g_return_if_fail_warning):
|
||||||
|
Include implementation of g_return_if_fail_internal().
|
||||||
|
|
||||||
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmessages.c (g_return_if_fail_warning):
|
||||||
|
Include implementation of g_return_if_fail_internal().
|
||||||
|
|
||||||
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmessages.c (g_return_if_fail_warning):
|
||||||
|
Include implementation of g_return_if_fail_internal().
|
||||||
|
|
||||||
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmessages.c (g_return_if_fail_warning):
|
||||||
|
Include implementation of g_return_if_fail_internal().
|
||||||
|
|
||||||
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmessages.c (g_return_if_fail_warning):
|
||||||
|
Include implementation of g_return_if_fail_internal().
|
||||||
|
|
||||||
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
* glib/gmessages.h (g_return_[val_]if_fail): Use
|
||||||
|
@ -560,6 +560,18 @@ g_log (const gchar *log_domain,
|
|||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
g_return_if_fail_warning (const char *log_domain,
|
||||||
|
const char *pretty_function,
|
||||||
|
const char *expression)
|
||||||
|
{
|
||||||
|
g_log (log_domain,
|
||||||
|
G_LOG_LEVEL_CRITICAL,
|
||||||
|
"%s: assertion `%s' failed",
|
||||||
|
pretty_function,
|
||||||
|
expression);
|
||||||
|
}
|
||||||
|
|
||||||
#define CHAR_IS_SAFE(wc) (!((wc < 0x20 && wc != '\t' && wc != '\n' && wc != '\r') || \
|
#define CHAR_IS_SAFE(wc) (!((wc < 0x20 && wc != '\t' && wc != '\n' && wc != '\r') || \
|
||||||
(wc == 0x7f) || \
|
(wc == 0x7f) || \
|
||||||
(wc >= 0x80 && wc < 0xa0)))
|
(wc >= 0x80 && wc < 0xa0)))
|
||||||
|
Loading…
Reference in New Issue
Block a user