-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtimestwo.i
33 lines (29 loc) · 978 Bytes
/
timestwo.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%module timestwo
%include "carrays.i"
%array_class(double, doubleArray);
%array_class(int, intArray);
/* Generate includes for required headers */
%{
#include "codegen/dll/timestwo/timestwo_types.h"
#include "codegen/dll/timestwo/timestwo.h"
#include "codegen/dll/timestwo/timestwo_emxAPI.h"
#include "codegen/dll/timestwo/timestwo_initialize.h"
#include "codegen/dll/timestwo/timestwo_terminate.h"
%}
/* Tell SWIG about allocators */
%newobject emxCreate_real_T;
%newobject emxCreateWrapper_real_T;
%newobject emxCreateND_real_T;
%newobject emxCreateWrapperND_real_T;
/* Parse necessary headers */
%include codegen/dll/timestwo/timestwo_types.h
%include codegen/dll/timestwo/timestwo.h
%include codegen/dll/timestwo/timestwo_emxAPI.h
%include codegen/dll/timestwo/timestwo_initialize.h
%include codegen/dll/timestwo/timestwo_terminate.h
/* Destructor for emxArray_real_T */
%extend emxArray_real_T {
~emxArray_real_T() {
emxDestroyArray_real_T($self);
}
}