Un-ignored: the dev drive is the ground truth the restoration and emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio content). Kept in-repo for the pod-owner community. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
27 lines
416 B
C++
27 lines
416 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
static int my_malloced=0;
|
|
|
|
char *my_malloc ( int n )
|
|
{
|
|
char *c=malloc(n);
|
|
|
|
if (c) {
|
|
my_malloced+=n;
|
|
printf ( "malloced %d bytes, total %d\n", n, my_malloced );
|
|
}
|
|
else {
|
|
printf ( "malloced FAILED on %d bytes, total %d\n", n, my_malloced );
|
|
}
|
|
return c;
|
|
}
|
|
|
|
void my_free ( char *c )
|
|
{
|
|
free(c);
|
|
|
|
printf ("free 0x%x\n", c );
|
|
}
|
|
|