Index: /trunk/ab5.0/abdev/BasicCompiler_Common/src/NativeCode.cpp
===================================================================
--- /trunk/ab5.0/abdev/BasicCompiler_Common/src/NativeCode.cpp	(revision 548)
+++ /trunk/ab5.0/abdev/BasicCompiler_Common/src/NativeCode.cpp	(revision 549)
@@ -7,24 +7,15 @@
 const ::DllProc &Schedule::GetDllProc() const
 {
-	if( type != Schedule::DllProc )
-	{
-		compiler.errorMessenger.OutputFatalError();
-	}
+	_ASSERT( type == Schedule::DllProc );
 	return *pDllProc;
 }
 const ::UserProc &Schedule::GetUserProc() const
 {
-	if( !( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ) )
-	{
-		compiler.errorMessenger.OutputFatalError();
-	}
+	_ASSERT( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress );
 	return *pUserProc;
 }
 const ::CClass &Schedule::GetClass() const
 {
-	if( !( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo ) )
-	{
-		compiler.errorMessenger.OutputFatalError();
-	}
+	_ASSERT( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo );
 	return *pClass;
 }
@@ -32,16 +23,10 @@
 void Schedule::SpecifyAddressOf()
 {
-	if( type != Schedule::UserProc )
-	{
-		compiler.errorMessenger.OutputFatalError();
-	}
+	_ASSERT( type == Schedule::UserProc );
 	type = Schedule::AddressOf;
 }
 void Schedule::SpecifyCatchAddress()
 {
-	if( type != Schedule::UserProc )
-	{
-		compiler.errorMessenger.OutputFatalError();
-	}
+	_ASSERT( type == Schedule::UserProc );
 	type = Schedule::CatchAddress;
 }
