C:
__LINE__ ; __FILE__ ; __FUNCTION__
JAVA:
public static int getLineNumber() {
return Thread.currentThread().getStackTrace()[2].getLineNumber();
}
C:
__LINE__ ; __FILE__ ; __FUNCTION__
JAVA:
public static int getLineNumber() {
return Thread.currentThread().getStackTrace()[2].getLineNumber();
}