summaryrefslogtreecommitdiff
path: root/autodoc/source/parser/cpp/sownstck.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'autodoc/source/parser/cpp/sownstck.hxx')
-rw-r--r--autodoc/source/parser/cpp/sownstck.hxx21
1 files changed, 16 insertions, 5 deletions
diff --git a/autodoc/source/parser/cpp/sownstck.hxx b/autodoc/source/parser/cpp/sownstck.hxx
index 9e27ee8da5e1..730fe9f9b092 100644
--- a/autodoc/source/parser/cpp/sownstck.hxx
+++ b/autodoc/source/parser/cpp/sownstck.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sownstck.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: np $ $Date: 2002-03-08 14:45:32 $
+ * last change: $Author: hr $ $Date: 2003-04-15 18:46:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,7 @@
#include <estack.hxx>
// PARAMETERS
#include <ary/cpp/c_namesp.hxx>
+#include <x_parse.hxx>
namespace cpp
@@ -308,10 +309,17 @@ S_OwnerStack::CloseBlock()
}
else
{
- csv_assert( aStack_Classes.size() == 0 );
+ // csv_assert( aStack_Classes.size() == 0 );
+ if ( aStack_Classes.size() > 0 )
+ throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0);
+
csv_assert( pCurEnum == 0 );
aStack_Namespaces.pop();
- csv_assert( aStack_Namespaces.size() > 0 );
+
+ // csv_assert( aStack_Namespaces.size() > 0 );
+ if( aStack_Namespaces.size() == 0 )
+ throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0);
+
}
SetOwner_2CurNamespace();
}
@@ -320,7 +328,10 @@ void
ContextForAry::
S_OwnerStack::CloseClass()
{
- csv_assert( aStack_Classes.size() > 0 );
+ // csv_assert( aStack_Classes.size() > 0 );
+ if ( aStack_Classes.size() == 0 )
+ throw X_Parser(X_Parser::x_UnspecifiedSyntaxError, "", udmstri::Null_(), 0);
+
aStack_Classes.pop();
if ( aStack_Classes.size() > 0 )
SetOwner_2CurClass();