git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 2f4a6f231ec40ecfc0ab7df0a09eb932e7ccddec
parent 858f0034650fc91778f2cf9adaf801ce77d2fe68
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue, 30 Dec 2025 14:27:30 +0100

Remove some accidentally committed debug code

Diffstat:
MCocoa/Document.m18------------------
1 file changed, 0 insertions(+), 18 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -17,24 +17,6 @@ #import "GBHexStatusBarRepresenter.h" #import "NSObject+DefaultsObserver.h" -void *AllocationAt(uintptr_t x) -{ - size_t malloc_size(const void *ptr); - uintptr_t t = x & ~7; - for (unsigned i = 0; i < 128; i++) { - size_t size = malloc_size((void *)t); - if (!size) { - t -= 8; - continue; - } - if (x < t + size) { - return (void *)t; - } - return NULL; - } - return NULL; -} - #define likely(x) GB_likely(x) #define unlikely(x) GB_unlikely(x)

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.