summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/th02/javaupm_th02.i
blob: d20e89931b3de897cbea95666a07aa1b2ed846f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module javaupm_th02
%include "../upm.i"

%{
    #include "th02.hpp"
%}

%include "th02.hpp"

%pragma(java) jniclasscode=%{
    static {
        try {
            System.loadLibrary("javaupm_th02");
        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load. \n" + e);
            System.exit(1);
        }
    }
%}