diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-05 12:22:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-05 12:22:56 (GMT) |
commit | 1182eba905b64f194da50543a248846ac8cfb0d7 (patch) | |
tree | 27d905c9d616cd010d71d17798e366e71f236e12 /Tests | |
parent | e4dce08591ef28e03d3aba3492aff6f27388ec1d (diff) | |
download | CMake-1182eba905b64f194da50543a248846ac8cfb0d7.zip CMake-1182eba905b64f194da50543a248846ac8cfb0d7.tar.gz CMake-1182eba905b64f194da50543a248846ac8cfb0d7.tar.bz2 |
ENH: add missing file
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/TestDriver/testArgs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/TestDriver/testArgs.h b/Tests/TestDriver/testArgs.h new file mode 100644 index 0000000..3374417 --- /dev/null +++ b/Tests/TestDriver/testArgs.h @@ -0,0 +1,20 @@ +void testProccessArgs(int* ac, char***av) +{ + if(*ac < 2) + { + return; + } + char** argv = *av; + if(strcmp(argv[1], "--with-threads") == 0) + { + printf("number of threads is %s\n", argv[2]); + *av +=2; + *ac -=2; + } + else if (strcmp(argv[1], "--without-threads") == 0) + { + printf("no threads\n"); + *av += 1; + *ac -= 1; + } +} |