Added Sys.NULL constant

This commit is contained in:
Elias Naur 2003-04-03 20:20:29 +00:00
parent d7ff86a7d3
commit 3018edde4c
4 changed files with 43 additions and 1 deletions

View file

@ -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.