This commit is contained in:
Adrien Guatto
2025-11-10 18:12:19 +01:00
parent 88595d288f
commit 70fc7019dc
20 changed files with 916 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
%module pendulum
%{
#define SWIG_FILE_WITH_INIT
#include "pendulum.h"
#include "/usr/include/math.h" // hack to avoid Heptagon's math.h
%}
// Important: makes SWIG aware of our dumb "string" type.
%include "mathext_types.h"
%rename("%(strip:[Pendulum__])s") "";
%include "pendulum_types.h"
%include "pendulum.h"
%pythoncode "node_wrapping.py"