blob: 98e086c69cb930e08baf681556cfd8ce21f99d0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* See LICENSE file for copyright and license details. */
package libgamma;
/**
* Library initialisation class
*/
class Libgamma
{
/**
* Initialise the library
*/
static void initialise()
{
if (Libgamma.initialised)
return;
Libgamma.initialised = true;
try {
System.loadLibrary("gamma-java");
} catch (Throwable err) {
throw new Error(err);
}
}
/**
* Whether {@link #initialise} has been invoked
*/
private static boolean initialised = false;
}
|