Skip to content

Commit

Permalink
Improve formatting on generated entry file (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed Aug 11, 2020
1 parent 9aa5c42 commit fd88249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class EntryFileBuilder(val bindingContext: BindingContext) {
.addMember("%S", "EXPERIMENTAL_API_USAGE")
.build()
)
.addComment("THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY! ALL CHANGES TO IT WILL BE OVERWRITTEN ON EACH BUILD")
.addFunction(generateGDNativeInitFunction())
.addFunction(generateGDNativeTerminateFunction())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ object FunctionRegistrationGenerator {

className?.let {
"getTypeToVariantConversionFunction<%T>()" to className
} ?: "{ %T() }" to ClassName("godot.core", "Variant")
} ?: "{ %T() }" to ClassName("godot.core", "Variant")
} ?: "{·%T()·}" to ClassName("godot.core", "Variant")
} ?: "{·%T()·}" to ClassName("godot.core", "Variant")
}

private fun isOfType(type: KotlinType, typeFqName: String): Boolean {
Expand Down

0 comments on commit fd88249

Please sign in to comment.