inital com

This commit is contained in:
WaterBottle committed 2025-11-22 21:58:09 +01:00
commit 6f7a5d1166
8925 files changed
+1229822

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// mission critical headers
#include "../inc/raylib.h"
#include "../inc/3.12.12/include/python3.12/Python.h"
// other headers
#include <iostream>
#include <stdio.h>
#include <functional> // for ref()
#include <thread>
// custom headers
#include "../app/run_py.hpp"
+18
View File
@@ -0,0 +1,18 @@
char RunPy(const char *py, bool _testPy = false ){
char result = {};
const char* _TestPyCode =
"print('PYTHON APPEARS TO BE WORKING!!!')";
Py_Initialize();
if(_testPy){
result = PyRun_SimpleString(_TestPyCode);
return result;
}
result = PyRun_SimpleString(py);
if (result != 0) std::cerr << "Python execution failed." << std::endl;
Py_Finalize();
return result;
}