mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Added Sys.NULL constant
This commit is contained in:
parent
d7ff86a7d3
commit
3018edde4c
4 changed files with 43 additions and 1 deletions
|
|
@ -82,10 +82,16 @@ public final class Sys {
|
|||
* the library, and whether assertions are enabled or not.
|
||||
*/
|
||||
public static final boolean DEBUG;
|
||||
|
||||
/**
|
||||
* The integer equivalent of the native NULL constant
|
||||
*/
|
||||
public static final int NULL;
|
||||
|
||||
|
||||
private static boolean _debug;
|
||||
static {
|
||||
NULL = nGetNULLValue();
|
||||
try {
|
||||
assert false;
|
||||
LIBRARY_NAME = "lwjgl";
|
||||
|
|
@ -123,6 +129,11 @@ public final class Sys {
|
|||
setTime(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the native NULL constant value
|
||||
*/
|
||||
private static native int nGetNULLValue();
|
||||
|
||||
/**
|
||||
* Gets the address of a buffer. If the address cannot be obtained for any reason
|
||||
* then this method returns 0.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue