|Macoy Madson 22ff4a1ed4||6 years ago|
|.gitignore||6 years ago|
|LICENSE.txt||6 years ago|
|README.md||6 years ago|
|helloModule.py||6 years ago|
|main.cpp||6 years ago|
Hacked together C++ code to show how to both embed and extend Python 3 in C++ (albeit, this code is basically C because I use very few C++ features).
Note that this is basically cut-and-paste from several sources, usually not verbatim but close. See References in main.cpp to get an idea of where I got this this stuff from.
I assume you are using Linux, g++, and Python 3.4. You may have to change some stuff in order to get this running.
-Arguments to / from C++ functions -Returning stuff to Python from C++ -Returning stuff from Python to C++ -Calling Python class methods -Calling C++ class methods (probably impossible - need to wrap and use global class singletons or something)