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

%{
    #include "flex.hpp"
%}

%include "flex.hpp"

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