equal
deleted
inserted
replaced
1993 void qt_check_pointer(const char *n, int l) |
1993 void qt_check_pointer(const char *n, int l) |
1994 { |
1994 { |
1995 qWarning("In file %s, line %d: Out of memory", n, l); |
1995 qWarning("In file %s, line %d: Out of memory", n, l); |
1996 } |
1996 } |
1997 |
1997 |
1998 #ifndef QT_NO_EXCEPTIONS |
|
1999 /* \internal |
1998 /* \internal |
2000 Allows you to throw an exception without including <new> |
1999 Allows you to throw an exception without including <new> |
2001 Called internally from Q_CHECK_PTR on certain OS combinations |
2000 Called internally from Q_CHECK_PTR on certain OS combinations |
2002 */ |
2001 */ |
2003 void qBadAlloc() |
2002 void qBadAlloc() |
2004 { |
2003 { |
2005 QT_THROW(std::bad_alloc()); |
2004 QT_THROW(std::bad_alloc()); |
2006 } |
2005 } |
2007 #endif |
|
2008 |
2006 |
2009 /* |
2007 /* |
2010 The Q_ASSERT macro calls this function when the test fails. |
2008 The Q_ASSERT macro calls this function when the test fails. |
2011 */ |
2009 */ |
2012 void qt_assert(const char *assertion, const char *file, int line) |
2010 void qt_assert(const char *assertion, const char *file, int line) |