]> OCCT Git - occt-wok.git/commitdiff
0024780: Exceptions definition - move generated implementation from cxx to hxx
authorkgv <kgv@opencascade.com>
Tue, 1 Apr 2014 05:22:36 +0000 (09:22 +0400)
committerabv <abv@opencascade.com>
Sat, 20 Jun 2015 09:30:06 +0000 (12:30 +0300)
Do not generate .cxx files for exception classes

src/CPPExt/CPPExt_Exception.cxx
src/CPPExt/CPPExt_Template.edl

index cc2d3ac77d81ac20800845e44cd9da62e7d1aa27..a30ddf638932e19913903a78b74b01cb699078cb 100755 (executable)
@@ -141,7 +141,7 @@ void CPP_ExceptionClass(const Handle(MS_MetaSchema)& aMeta,
 
     outfile->Append(aFile);
 
-    CPP_ExceptionDerivated(aMeta,api,aClass,outfile,FullList,Supplement);
+    ///CPP_ExceptionDerivated(aMeta,api,aClass,outfile,FullList,Supplement);
   }
   else {
     ErrorMsg() << "CPPExt" << "CPP_TransientClass - the class is NULL..." << endm;
index 8357558a35d35e81d648b41f1b2585112bd70dec..998ee49196886514f87c94fa6a965c09c18bf624 100755 (executable)
@@ -413,8 +413,7 @@ $#include <Standard_DefineException.hxx>
 $#include <Standard_SStream.hxx>
 $#include <%Inherits.hxx>
 $
-$class %Class;
-$DEFINE_STANDARD_HANDLE(%Class, %Inherits)
+$DEFINE_STANDARD_EXCEPTION(%Class, %Inherits)
 $
 $#if !defined No_Exception && !defined No_%Class
 $  #define %Class_Raise_if(CONDITION, MESSAGE) \
@@ -423,8 +422,6 @@ $#else
 $  #define %Class_Raise_if(CONDITION, MESSAGE)
 $#endif
 $
-$DEFINE_STANDARD_EXCEPTION(%Class, %Inherits)
-$
 $#endif // _%Class_HeaderFile
 @end;