diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-05 07:22:56 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-05 07:22:56 -0500 |
commit | 1182eba905b64f194da50543a248846ac8cfb0d7 (patch) | |
tree | 27d905c9d616cd010d71d17798e366e71f236e12 /Tests/TestDriver/testArgs.h | |
parent | e4dce08591ef28e03d3aba3492aff6f27388ec1d (diff) | |
download | cmake-1182eba905b64f194da50543a248846ac8cfb0d7.tar.gz |
ENH: add missing file
Diffstat (limited to 'Tests/TestDriver/testArgs.h')
-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 0000000000..337441759a --- /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; + } +} |