Commit 2e2d5567 authored by Karl Wette's avatar Karl Wette
Browse files

SWIG: add new dynamic array macro for arrays of fixed-length arrays

Original: 113f278c633e22fe442d01ce49ffb253661445d5
parent c8f41fc4
......@@ -761,6 +761,17 @@ if (swiglal_release_parent(PTR)) {
%ignore NI;
%enddef
#define %swiglal_public_clear_1D_ARRAY(TYPE, DATA, SIZET, NI)
// 2-D arrays of fixed-length arrays, e.g:
// typedef ETYPE[NJ] ATYPE;
// SIZET NI;
// ATYPE* DATA;
%define %swiglal_public_2D_ARRAY_FIXED(ETYPE, ATYPE, DATA, SIZET, NI)
%swiglal_array_dynamic_size(SIZET, NI);
%swiglal_array_dynamic_2D(ETYPE, SIZET, DATA, arg1->NI, (sizeof(ATYPE)/sizeof(ETYPE)), (sizeof(ATYPE)/sizeof(ETYPE)), 1);
%ignore DATA;
%ignore NI;
%enddef
#define %swiglal_public_clear_2D_ARRAY_FIXED(ETYPE, ATYPE, DATA, SIZET, NI)
// 2-D arrays, e.g:
// SIZET NI, NJ;
// TYPE* DATA;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment