]> Creatis software - gdcm.git/blob - CMake/gdcmTestFUNCTION.cxx
Fix mistypings
[gdcm.git] / CMake / gdcmTestFUNCTION.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmTestFUNCTION.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/05/29 23:06:41 $
7   Version:   $Revision: 1.2 $
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