bbtkTestFUNCTION.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   bbtk
00004   Module:    $RCSfile: bbtkTestFUNCTION.cxx,v $
00005   Language:  C++
00006   Date:      $Date: 2008/01/22 15:02:00 $
00007   Version:   $Revision: 1.1.1.1 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 // Minimal test for existence of __FUNCTION__ pseudo-macro
00020 #include <string.h>
00021 
00022 int TestFUNCTION()
00023 {
00024 #ifdef __BORLANDC__
00025   #ifndef __FUNCTION__
00026     #define __FUNCTION__ __FUNC__
00027   #endif
00028 #endif
00029   const char *f = __FUNCTION__;
00030   int r = strcmp( "TestFUNCTION", f);
00031   return r;
00032 }
00033  
00034 int main()
00035 {
00036   return TestFUNCTION();
00037 }
00038 

Generated on Wed Nov 12 11:37:08 2008 for BBTK by  doxygen 1.5.6