All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smetana.core.debug.SmetanaDebugSlow Maven / Gradle / Ivy

There is a newer version: 1.2025.0
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.

package smetana.core.debug;

public final class SmetanaDebugSlow {

	// ::remove file when __CORE__

	// ::comment when __CORE__
	public static boolean TRACE = false;
	public static boolean TRACE_FINAL_CALL = false;
	public static boolean VERY_VERBOSE = false;

	private static Purify purify;

	private static Purify purify() {
		if (purify == null)
			purify = new Purify();
		return purify;
	}

	static public void LOG(String s) {
		// ::comment when __CORE__
		if (TRACE)
			purify().logline(s);

	}

	static public void ENTERING(String signature, String methodName) {
		// ::comment when __CORE__
		if (TRACE)
			purify().entering(signature, methodName);
	}

	static public void LEAVING(String signature, String methodName) {
		// ::comment when __CORE__
		if (TRACE)
			purify().leaving(signature, methodName);
	}

	public static void reset() {
		// ::comment when __CORE__
		if (TRACE)
			purify().reset();
	}

	public static void printMe() {
		// ::comment when __CORE__
		if (TRACE && TRACE_FINAL_CALL)
			purify().printMe();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy