blob: f6f849bdb251c2186d9ea9dc5e47fa4b0494a6ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
%module javaupm_hwxpxx
%include "../upm.i"
%include "typemaps.i"
%{
#include "hwxpxx.h"
%}
%include "hwxpxx.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hwxpxx");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
|