Panda3D
Functions
preprocess_argv.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "preprocess_argv.h"
#include "win32ArgParser.h"

Go to the source code of this file.

Functions

void preprocess_argv (int &argc, char **&argv)
 Processes the argc, argv pair as needed before passing it to getopt(). More...
 

Detailed Description

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."

Author
drose
Date
2011-11-08

Definition in file preprocess_argv.cxx.

Function Documentation

◆ preprocess_argv()

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().