X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d775fa82354a1f8d5db87ad1d71ab00ef7d9123c..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/stack.h diff --git a/include/wx/stack.h b/include/wx/stack.h index 2500a114c6..53f5121c2c 100644 --- a/include/wx/stack.h +++ b/include/wx/stack.h @@ -20,8 +20,10 @@ class cls : public wxVectorBase\ public:\ void push(const obj& o)\ {\ - bool rc = Alloc(size() + 1);\ - wxASSERT(rc);\ + if ( !Alloc(size() + 1) )\ + {\ + wxFAIL_MSG(_T("failed to extend stack"));\ + }\ Append(new obj(o));\ };\ \