cfleming
09/29/2020, 9:03 PMconst val DEBUG = false
and then code like:
if (DEBUG) {
println("Addthread: $thread")
}
If DEBUG
is set to false, will the `println`s be totally compiled out of the class file?nanodeath
09/29/2020, 9:20 PMnanodeath
09/29/2020, 9:24 PMephemient
09/29/2020, 9:30 PMkotlinc -Xlist-phases
and just did a quick check of the ones that looked relevantephemient
09/29/2020, 9:31 PMephemient
09/29/2020, 9:32 PMcfleming
09/29/2020, 9:44 PMcfleming
09/29/2020, 9:44 PMnanodeath
09/29/2020, 9:44 PMcfleming
09/29/2020, 9:45 PMVampire
09/30/2020, 8:10 AM