diff options
author | Brad King <brad.king@kitware.com> | 2006-10-04 20:56:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-04 20:56:32 (GMT) |
commit | a48cf7e07bd8e7d19f91e78569490bd1c90de000 (patch) | |
tree | e37ad8f0aa8a5fe70d4971ba27b5612e5e348efd /Source/kwsys/kwsysPlatformTestsC.c | |
parent | 4fc95339f776d012c622dfe59a3b62516e6d974e (diff) | |
download | CMake-a48cf7e07bd8e7d19f91e78569490bd1c90de000.zip CMake-a48cf7e07bd8e7d19f91e78569490bd1c90de000.tar.gz CMake-a48cf7e07bd8e7d19f91e78569490bd1c90de000.tar.bz2 |
ENH: Renamed kwsysPlatformCxxTests to kwsysPlatformTests and generalized it for multiple language tests (C and CXX).
Diffstat (limited to 'Source/kwsys/kwsysPlatformTestsC.c')
-rw-r--r-- | Source/kwsys/kwsysPlatformTestsC.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformTestsC.c b/Source/kwsys/kwsysPlatformTestsC.c new file mode 100644 index 0000000..36c5f4d --- /dev/null +++ b/Source/kwsys/kwsysPlatformTestsC.c @@ -0,0 +1,25 @@ +/* Macros to define main() in a cross-platform way. + Usage: + + int KWSYS_PLATFORM_TEST_C_MAIN() + { + return 0; + } + + int KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv) + { + (void)argc; (void)argv; + return 0; + } +*/ +#if defined(__CLASSIC_C__) +# define KWSYS_PLATFORM_TEST_C_MAIN() \ + main() +# define KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv) \ + main(argc,argv) int argc; char* argv[]; +#else +# define KWSYS_PLATFORM_TEST_C_MAIN() \ + main(void) +# define KWSYS_PLATFORM_TEST_C_MAIN_ARGS(argc, argv) \ + main(int argc, char* argv[]) +#endif |