diff options
author | Guido van Rossum <guido@python.org> | 1999-12-16 17:52:08 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-12-16 17:52:08 +0000 |
commit | 4e08379891ba67b93fb9d238e4c064ab92c81787 (patch) | |
tree | f9e4baed7a07aee573d66ac3acf6864724ef3da5 /Modules/ccpython.cc | |
parent | 9501219303c6c480e452ed9b34353db71a7bb4a2 (diff) | |
download | cpython-git-4e08379891ba67b93fb9d238e4c064ab92c81787.tar.gz |
Patch and new file by Geoff Furnish for C++ compilation.
Diffstat (limited to 'Modules/ccpython.cc')
-rw-r--r-- | Modules/ccpython.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/ccpython.cc b/Modules/ccpython.cc new file mode 100644 index 0000000000..a6e97ff6a5 --- /dev/null +++ b/Modules/ccpython.cc @@ -0,0 +1,11 @@ +/* Minimal main program -- everything is loaded from the library */ + +#include "Python.h" + +extern "C" +DL_EXPORT(int) Py_Main( int argc, char *argv[] ); + +int main( int argc, char *argv[] ) +{ + return Py_Main(argc, argv); +} |