Fix cpp11_type_aliasing test
Ordering fix for Guile wrappers to compile
This commit is contained in:
parent
c83466af53
commit
54e2ad073f
1 changed files with 3 additions and 1 deletions
|
|
@ -63,12 +63,14 @@ using IntArray = Int[];
|
||||||
|
|
||||||
// Test that SWIG understands these new types
|
// Test that SWIG understands these new types
|
||||||
|
|
||||||
|
%{
|
||||||
|
Int mult2(Int x) { return x * 2; }
|
||||||
|
%}
|
||||||
%callback("%s_cb");
|
%callback("%s_cb");
|
||||||
Int mult2(Int x);
|
Int mult2(Int x);
|
||||||
%nocallback;
|
%nocallback;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
Int mult2(Int x) { return x * 2; }
|
|
||||||
IntPtr allocate_int() { return new Int(12); }
|
IntPtr allocate_int() { return new Int(12); }
|
||||||
void free_int(int* ptr) { delete ptr; }
|
void free_int(int* ptr) { delete ptr; }
|
||||||
void inplace_mult2(IntRef x) { x *= 2; }
|
void inplace_mult2(IntRef x) { x *= 2; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue