Skip to content

Commit

Permalink
Make new variant types temporarily internal
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Sep 4, 2024
1 parent 6677d41 commit 691bb6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var targets: [Target] = [
exclude: ["README.md"],
swiftSettings: [
// Uncomment for using legacy array-based marshalling
// .define("LEGACY_MARSHALING")
.define("LEGACY_MARSHALING")
]
),

Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftGodot/Variant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ struct VariantContent: Equatable, ExpressibleByNilLiteral {
public typealias VariantTypeTag = Variant.GType

// Unsafe Variant handler, that doesn't do implicit lifetime management, can be destroyed twice, or leaked
public struct UnsafeVariant: Hashable, Equatable, CustomDebugStringConvertible {
struct UnsafeVariant: Hashable, Equatable, CustomDebugStringConvertible {
/// This describes the type of the data wrapped by this Variant
public var typeTag: VariantTypeTag {
var content = content
Expand Down Expand Up @@ -540,7 +540,7 @@ public struct UnsafeVariant: Hashable, Equatable, CustomDebugStringConvertible {
}
}

public struct TransientVariant: ~Copyable {
struct TransientVariant: ~Copyable {
var managed: UnsafeVariant

/// Leak this variant, the managed `UnsafeVariant` is now controlled by you
Expand Down

0 comments on commit 691bb6a

Please sign in to comment.