some debugging logs

This commit is contained in:
Folkert 2023-10-09 13:32:13 +02:00
parent be2c31fe91
commit 7c67f8aafb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 15 additions and 3 deletions

View file

@ -219,6 +219,9 @@ pub fn decrefDataPtrC(
bytes_or_null: ?[*]isize,
alignment: u32,
) callconv(.C) void {
if (DEBUG_ALLOC and builtin.target.cpu.arch != .wasm32) {
std.debug.print("we will decref the data pointer {*}\n", .{bytes_or_null});
}
var bytes = bytes_or_null orelse return;
const data_ptr = @ptrToInt(bytes);