]> OCCT Git - occt-wok.git/commitdiff
0024780: Exceptions definition - move generated implementation from cxx to hxx CR24780
authorkgv <kgv@opencascade.com>
Tue, 1 Apr 2014 05:22:36 +0000 (09:22 +0400)
committerkgv <kgv@opencascade.com>
Tue, 1 Apr 2014 05:26:04 +0000 (09:26 +0400)
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 767a868a844c5d68b80890e9e6e9fbb00e5400b4..c9d10f3849bbf09fcfd425381471c596b72b3779 100755 (executable)
@@ -426,8 +426,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) \
@@ -436,8 +435,6 @@ $#else
 $  #define %Class_Raise_if(CONDITION, MESSAGE)
 $#endif
 $
-$DEFINE_STANDARD_EXCEPTION(%Class, %Inherits)
-$
 $#endif // _%Class_HeaderFile
 @end;