]> Creatis software - bbtk.git/blob - kernel/src/cmake/bbtkTestFUNCTION.cxx
Recreated the complete cvs tree because the project architecture deeply changed
[bbtk.git] / kernel / src / cmake / bbtkTestFUNCTION.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbtkTestFUNCTION.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/01/22 15:02:00 $
7   Version:   $Revision: 1.1.1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 // Minimal test for existence of __FUNCTION__ pseudo-macro
20 #include <string.h>
21
22 int TestFUNCTION()
23 {
24 #ifdef __BORLANDC__
25   #ifndef __FUNCTION__
26     #define __FUNCTION__ __FUNC__
27   #endif
28 #endif
29   const char *f = __FUNCTION__;
30   int r = strcmp( "TestFUNCTION", f);
31   return r;
32 }
33  
34 int main()
35 {
36   return TestFUNCTION();
37 }
38