authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-12 02:28:56-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-12 02:28:56-07:00
log94f9db92114a559639fbe0b1c5deda13962ca8a2
tree6723bfb38dacf4d2f99ee2f239fb8e22bf88cbfd
parent728e90919ffc88f6549a08a93b0743d2d3bda898
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

sqlite3: rely on @hasDecl less


1 files changed, 3 insertions(+), 2 deletions(-)

src/sqlite3.zig+3-2
......@@ -128,12 +128,13 @@ pub fn nameForType2(T: type) []const u8 {
128128 }
129129 if (tinfo == .@"struct") {
130130 const info = tinfo.@"struct";
131 if (@hasDecl(T, "baseTypeName")) return T.baseTypeName;
131 if (@hasDecl(T, "BaseType") and T.BaseType != []const u8) return T.baseTypeName;
132132 if (@hasDecl(T, "BaseType")) return nameForType2(T.BaseType);
133133 if (info.layout == .@"packed") return nameForType2(info.backing_integer.?);
134 return nameForType2(T.BaseType);
134135 }
135136 if (tinfo == .@"enum") {
136 if (@hasDecl(T, "baseTypeName")) return T.baseTypeName;
137 if (@hasDecl(T, "BaseType") and T.BaseType != []const u8) return T.baseTypeName;
137138 return nameForType2(T.BaseType);
138139 }
139140 if (tinfo == .int or tinfo == .bool) {