diff options
Diffstat (limited to 'Examples/test-suite/argcargvtest.i')
-rw-r--r-- | Examples/test-suite/argcargvtest.i | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Examples/test-suite/argcargvtest.i b/Examples/test-suite/argcargvtest.i index ed5aa0985..a00dee177 100644 --- a/Examples/test-suite/argcargvtest.i +++ b/Examples/test-suite/argcargvtest.i @@ -1,8 +1,10 @@ %module argcargvtest +#ifndef SWIGOCAML %include <argcargv.i> %apply (int ARGC, char **ARGV) { (size_t argc, const char **argv) } +#endif %inline %{ @@ -13,7 +15,7 @@ int mainc(size_t argc, const char **argv) const char* mainv(size_t argc, const char **argv, int idx) { - return argv[idx]; + return argv[idx] ? argv[idx] : "<<NULL>>"; } void initializeApp(size_t argc, const char **argv, bool setPGid = true, bool isMakeline = false) |