Reduce amount of redundant empty lines in C interop stubs
This commit is contained in:
committed by
SvyatoslavScherbina
parent
ee70deae49
commit
cc73c7e009
+4
-1
@@ -1388,11 +1388,14 @@ class StubGenerator(
|
|||||||
out("")
|
out("")
|
||||||
|
|
||||||
stubs.forEach {
|
stubs.forEach {
|
||||||
it.nativeStubLines.forEach {
|
val lines = it.nativeStubLines
|
||||||
|
if (lines.isNotEmpty()) {
|
||||||
|
lines.forEach {
|
||||||
out(it)
|
out(it)
|
||||||
}
|
}
|
||||||
out("")
|
out("")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (entryPoint != null) {
|
if (entryPoint != null) {
|
||||||
out("extern int Konan_main(int argc, char** argv);")
|
out("extern int Konan_main(int argc, char** argv);")
|
||||||
|
|||||||
Reference in New Issue
Block a user