Update to latest zig master
updated raylib and raygui
This commit is contained in:
parent
ae76994a2d
commit
ae7cb3fa93
4 changed files with 14 additions and 14 deletions
|
|
@ -2293,8 +2293,8 @@ pub fn textFormat(text: [*:0]const u8, args: anytype) [*:0]const u8 {
|
|||
comptime {
|
||||
const info = @typeInfo(@TypeOf(args));
|
||||
switch (info) {
|
||||
.Struct => {
|
||||
if (!info.Struct.is_tuple)
|
||||
.@"struct" => {
|
||||
if (!info.@"struct".is_tuple)
|
||||
@compileError("Args should be in a tuple (call this function like textFormat(.{arg1, arg2, ...});)!");
|
||||
},
|
||||
else => {
|
||||
|
|
@ -2311,8 +2311,8 @@ pub fn traceLog(logLevel: TraceLogLevel, text: [*:0]const u8, args: anytype) voi
|
|||
comptime {
|
||||
const info = @typeInfo(@TypeOf(args));
|
||||
switch (info) {
|
||||
.Struct => {
|
||||
if (!info.Struct.is_tuple)
|
||||
.@"struct" => {
|
||||
if (!info.@"struct".is_tuple)
|
||||
@compileError("Args should be in a tuple (call this function like traceLog(.{arg1, arg2, ...});)!");
|
||||
},
|
||||
else => {
|
||||
|
|
|
|||
|
|
@ -2293,8 +2293,8 @@ pub fn textFormat(text: [*:0]const u8, args: anytype) [*:0]const u8 {
|
|||
comptime {
|
||||
const info = @typeInfo(@TypeOf(args));
|
||||
switch (info) {
|
||||
.Struct => {
|
||||
if (!info.Struct.is_tuple)
|
||||
.@"struct" => {
|
||||
if (!info.@"struct".is_tuple)
|
||||
@compileError("Args should be in a tuple (call this function like textFormat(.{arg1, arg2, ...});)!");
|
||||
},
|
||||
else => {
|
||||
|
|
@ -2311,8 +2311,8 @@ pub fn traceLog(logLevel: TraceLogLevel, text: [*:0]const u8, args: anytype) voi
|
|||
comptime {
|
||||
const info = @typeInfo(@TypeOf(args));
|
||||
switch (info) {
|
||||
.Struct => {
|
||||
if (!info.Struct.is_tuple)
|
||||
.@"struct" => {
|
||||
if (!info.@"struct".is_tuple)
|
||||
@compileError("Args should be in a tuple (call this function like traceLog(.{arg1, arg2, ...});)!");
|
||||
},
|
||||
else => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue