Cours 7
This commit is contained in:
16
cours/inverted-pendulum/pendulum.i
Normal file
16
cours/inverted-pendulum/pendulum.i
Normal 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"
|
||||
Reference in New Issue
Block a user