]> Creatis software - gdcm.git/blob - CMake/gdcmTestFUNCTION.cxx
ENH: Cleanup the CMake stuff.
[gdcm.git] / CMake / gdcmTestFUNCTION.cxx
1 // Minimal test for existence of __FUNCTION__ pseudo-macro
2 #include <string.h>
3
4 int TestFUNCTION()
5 {
6 #ifdef __BORLANDC__
7   #ifndef __FUNCTION__
8     #define __FUNCTION__ __FUNC__
9   #endif
10 #endif
11   const char *f = __FUNCTION__;
12   int r = strcmp( "TestFUNCTION", f);
13   return r;
14 }
15  
16 int main()
17 {
18   return TestFUNCTION();
19 }
20