]> Creatis software - crea.git/blobdiff - src/creaRTTI.cxx
Clean code
[crea.git] / src / creaRTTI.cxx
index 5562f7e2d6988a90b07935c57a8e80279c4ada06..a89d2bdb8c3f789af521c73b764698ef9d714fb7 100644 (file)
@@ -2,7 +2,7 @@
 # ---------------------------------------------------------------------
 #
 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-#                        pour la Santé©
+#                        pour la Santé)
 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
@@ -65,22 +65,15 @@ namespace crea
     
   
   
-//  #if __APPLE__
-//  //EED2018-08-28  Be careful  #include <typeinfo> is not complete  (CommandLine mechanisme Xcode)
-//  printf("EED creaRTTI  run_time_up_or_down_cast   2018-08-28 Warnning !!!!  Apple cast missing  __do_upcast   ");
-//     return source_pointer;
-//  #else
+#if __APPLE__
+       //  //EED2018-08-28  Be careful  #include <typeinfo> is not complete  (CommandLine mechanisme Xcode)
+       printf("EED creaRTTI  run_time_up_or_down_cast   2018-08-28 Warnning !!!!  Apple cast missing  __do_upcast   ");
+       return source_pointer;
+#else
  #if __GNUC__ > 3 ||                                   \
    (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 ||            \
                     (__GNUC_MINOR__ == 1 &&            \
                      __GNUC_PATCHLEVEL__ > 0)))    
-                     
-printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac and in Linux ?????? n");                     
-printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac and in Linux ?????? n");                     
-printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac and in Linux ?????? n");                     
-printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac and in Linux ?????? n");                     
-printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac and in Linux ?????? n");                     
-/*  
     const abi::__class_type_info* targetTI = (const abi::__class_type_info *)( &(target_type));
     creaDebugMessage("info",7," * source   = "<<source_pointer<<std::endl);
     void* tmp = source_pointer;
@@ -96,14 +89,13 @@ printf("EED run_time_up_or_down_cast  Warnning This code not commpilling in mac
                                             -1);   
       }
     creaDebugMessage("info",7," * target   = "<<target_pointer<<std::endl);
- */   
   #else
     creaWarning("run_time_up_or_down_cast not impl. on Win : to do");
     // target_pointer = __RTDynamicCast(source_pointer, 0, source_type, target_type, 0);
   #endif
     return target_pointer;
     
-//  #endif 
+#endif   // __APPLE__