Skip to content

Commit

Permalink
Modified g_assert_not_reached to use g_unreachable.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jun 4, 2014
1 parent 7d93575 commit facf8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglib/src/glib.h
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ GUnicodeBreakType g_unichar_break_type (gunichar c);
#endif

#define g_assert(x) G_STMT_START { if (G_UNLIKELY (!(x))) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); eg_unreachable(); } G_STMT_END

/*
* Unicode conversion
Expand Down

0 comments on commit facf8c8

Please sign in to comment.