From: kgv Date: Tue, 1 Apr 2014 05:22:36 +0000 (+0400) Subject: 0024780: Exceptions definition - move generated implementation from cxx to hxx X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=87f40a8f1d66ad6a0f40e34649659a2576852368;p=occt-wok.git 0024780: Exceptions definition - move generated implementation from cxx to hxx Do not generate .cxx files for exception classes --- diff --git a/src/CPPExt/CPPExt_Exception.cxx b/src/CPPExt/CPPExt_Exception.cxx index cc2d3ac..a30ddf6 100755 --- a/src/CPPExt/CPPExt_Exception.cxx +++ b/src/CPPExt/CPPExt_Exception.cxx @@ -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; diff --git a/src/CPPExt/CPPExt_Template.edl b/src/CPPExt/CPPExt_Template.edl index 8357558..998ee49 100755 --- a/src/CPPExt/CPPExt_Template.edl +++ b/src/CPPExt/CPPExt_Template.edl @@ -413,8 +413,7 @@ $#include $#include $#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;