]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stack.h
set eol-style
[wxWidgets.git] / include / wx / stack.h
index 2500a114c609de25f6c939dc9c27088789df424b..53f5121c2cde1de81690dcca298a17fde305f196 100644 (file)
@@ -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));\
     };\
 \