@@ -2714,7 +2714,7 @@ pub const Lua = opaque {
27142714
27152715 pub fn prettyPrint (self : * Lua.DebugInfo , writer : std.io.AnyWriter ) ! void {
27162716 const addr : u64 = @intFromPtr (self );
2717- try writer .print ("root.Lua.DebugInfo@0x{x} {{\n " , .{addr });
2717+ try writer .print ("root.Lua.DebugInfo@0x{x:016 } {{\n " , .{addr });
27182718 if (HookEventKind .isHookEventKind (@intFromEnum (self .event ))) {
27192719 try writer .print (" event: '{s}' ({d}),\n " , .{ @tagName (self .event ), @intFromEnum (self .event ) });
27202720 } else {
@@ -2841,7 +2841,7 @@ pub const Lua = opaque {
28412841
28422842 pub fn prettyPrint (self : * Lua.DebugInfoFunction , writer : std.io.AnyWriter ) ! void {
28432843 const addr : u64 = @intFromPtr (self );
2844- try writer .print ("root.Lua.DebugInfoFunction@0x{x} {{\n " , .{addr });
2844+ try writer .print ("root.Lua.DebugInfoFunction@0x{x:016 } {{\n " , .{addr });
28452845 try writer .print (" what: '{s}',\n " , .{@tagName (self .what )});
28462846
28472847 if (std .mem .indexOf (u8 , self .short_src [0.. DebugShortSourceLen ], &.{0 })) | i | {
@@ -5377,7 +5377,7 @@ test "getInfo() can debug info can be pretty printed" {
53775377 try info .prettyPrint (fbs .writer ().any ());
53785378
53795379 const actual = fbs .getWritten ();
5380- try std .testing .expectEqual (281 , actual .len );
5380+ try std .testing .expectEqual (285 , actual .len );
53815381
53825382 // The output contains a pointer address too, so we will match the two parts around that.
53835383 try std .testing .expectEqualStrings (
@@ -5403,7 +5403,7 @@ test "getInfo() can debug info can be pretty printed" {
54035403 \\```
54045404 \\}
54055405 \\
5406- , actual [33 .. ]);
5406+ , actual [37 .. ]);
54075407}
54085408
54095409test "getInfoFunction() can be used to show debug information about a function" {
@@ -5450,7 +5450,7 @@ test "getInfoFunction() can pretty printed" {
54505450 try info .prettyPrint (fbs .writer ().any ());
54515451
54525452 const actual = fbs .getWritten ();
5453- try std .testing .expectEqual (211 , actual .len );
5453+ try std .testing .expectEqual (215 , actual .len );
54545454
54555455 // The output contains a pointer address too, so we will match the two parts around that.
54565456 try std .testing .expectEqualStrings (
@@ -5472,5 +5472,5 @@ test "getInfoFunction() can pretty printed" {
54725472 \\```
54735473 \\}
54745474 \\
5475- , actual [41 .. ]);
5475+ , actual [45 .. ]);
54765476}
0 commit comments