mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
java: solved SWIGTYPE_p_int and SWIGTYPE_p_float
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
8eed56fda0
commit
78a159594b
@ -1,10 +1,11 @@
|
||||
%module javaupm_mma7660
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%apply int *OUTPUT { int *x, int *y, int *z };
|
||||
%apply float *OUTPUT { float *ax, float *ay, float *az };
|
||||
|
||||
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
||||
%pointer_functions(int, intp);
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%{
|
||||
#include "mma7660.h"
|
||||
|
Reference in New Issue
Block a user