upm/src/max44009/javaupm_max44009.i
Noel Eck 51a181a14f java_interfaces: Moved ifdefs for swig version
Moved the SWIG version check from each sensor library .i file to
the base SWIG .i file (per interface).  This cleans up the number
of #if SWIG_VERSION's across the code base, and will make cleanup
of these easier at a later date.

Signed-off-by: Noel Eck <noel.eck@intel.com>
2017-03-03 10:27:12 -08:00

27 lines
531 B
OpenEdge ABL

%module javaupm_max44009
%include "../upm.i"
%include "../interfaces/javaupm_iLightSensor.i"
%include "arrays_java.i";
%include "../java_buffer.i"
%include "cpointer.i"
%include "typemaps.i"
%{
#include "max44009.hpp"
%}
%include "max44009.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_max44009");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}