dwww Home | Show directory contents | Find package

// Tests SWIG's handling of pass-by-value for complex datatypes
%module example

%{
#include "example.h"
%}

%include "example.h"

/* Some helper functions for our interface */
%inline %{

void vector_print(Vector *v) {
  printf("Vector %p = (%g, %g, %g)\n", (void *)v, v->x, v->y, v->z);
}
%}

Generated by dwww version 1.15 on Tue Jul 2 00:52:16 CEST 2024.