PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "dtoolbase.h"
Go to the source code of this file.
Functions | |
EXPCL_DTOOL_DTOOLUTIL void | preprocess_argv (int &argc, char **&argv) |
Processes the argc, argv pair as needed before passing it to getopt(). More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file preprocess_argv.h.
EXPCL_DTOOL_DTOOLUTIL void preprocess_argv | ( | int & | argc, |
char **& | argv | ||
) |
Processes the argc, argv pair as needed before passing it to getopt().
If this program is running on Windows, but not within Cygwin, this ignores the incoming argv, argv values, replacing them from the GetCommandLine() string, and expanding glob patterns like *.egg to a list of all matching egg files. On other platforms, this function does nothing and returns argc, argv unchanged.
The argc and argv values are modified by this function, if necessary, to point to statically-allocated memory that will be valid until the next call to preprocess_argv().
Definition at line 30 of file preprocess_argv.cxx.
Referenced by ProgramBase::parse_command_line().