Files
upm/src/lsm303dlh/jsupm_lsm303dlh.i

16 lines
379 B
OpenEdge ABL
Raw Normal View History

%module jsupm_lsm303dlh
%include "../upm.i"
%include "../carrays_int16_t.i"
// Adding this typemap because SWIG is converting int16 into a short by default
// This forces SWIG to convert it correctly
%typemap(out) int16_t* {
jsresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
}
%{
#include "lsm303dlh.hpp"
%}
%include "lsm303dlh.hpp"