1 %module jsupm_h3lis331dl 2 %include "../upm.i" 3 %include "cpointer.i" 4 5 /* Send "int *" and "float *" to JavaScript as intp and floatp */ 6 %pointer_functions(int, intp); 7 %pointer_functions(float, floatp); 8 9 %{ 10 #include "h3lis331dl.h" 11 %} 12 13 %include "h3lis331dl.h" 14