moved Sys.log to LWJGLUtils and renamed property to org.lwjgl.util.Debug

This commit is contained in:
Brian Matzon 2005-03-29 18:09:33 +00:00
parent c9fc024fa4
commit ad8d7676c2
18 changed files with 89 additions and 83 deletions

View file

@ -53,10 +53,7 @@ public final class Sys {
/** The native library name */
private static final String LIBRARY_NAME = "lwjgl";
/** Debug flag. */
public static final boolean DEBUG = Boolean.getBoolean("org.lwjgl.Sys.debug");
/** OS Name */
/** OS Name */
private final static String OS_NAME = System.getProperty("os.name");
/** The implementation instance to delegate platform specific behavior to */
@ -69,7 +66,7 @@ public final class Sys {
if (!native_version.equals(VERSION))
throw new LinkageError("Version mismatch: jar version is '" + VERSION +
"', native libary version is '" + native_version + "'");
implementation.setDebug(DEBUG);
implementation.setDebug(LWJGLUtil.DEBUG);
}
private static SysImplementation createImplementation() {
@ -100,16 +97,6 @@ public final class Sys {
private Sys() {
}
/**
* Prints the given message to System.err if isDebugEnabled()
* is true.
*/
public static void log(String msg) {
if (Sys.DEBUG) {
System.err.println(msg);
}
}
/**
* Initialization. This is just a dummy method to trigger the static constructor.
*/