Skip to content

Commit

Permalink
Reduce more number of visible fields, this time methods that we only …
Browse files Browse the repository at this point in the history
…use internally, as Windows has a limit of 64k public symbols and we were blowing those out. This further reduces by the public symbols surface by 6,600 elements
  • Loading branch information
migueldeicaza committed Oct 6, 2023
1 parent 95a8ab2 commit 9388df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Generator/Generator/MethodGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ func methodGen (_ p: Printer, method: MethodDefinition, className: String, cdef:
// If this is an internal, and being reference by a property, hide it
if usedMethods.contains (method.name) {
inline = "@inline(__always)"
visibility = "internal"
// Try to hide as much as possible, but we know that Godot child nodes will want to use these
// (DirectionalLight3D and Light3D) rely on this.
visibility = method.name == "get_param" || method.name == "set_param" ? "internal" : "fileprivate"
allEliminate = "_ "
methodName = method.name
} else {
Expand Down

0 comments on commit 9388df8

Please sign in to comment.