blob: b4311371a5aa3f6e17a4f8ca3bfe1c1e50b71026 (
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.hpp"
%}
%include "hwxpxx.hpp"
%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);
}
}
%}
|