Skip to content

Commit

Permalink
Add missing wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ringtailsoftware committed Dec 7, 2024
1 parent b24c49f commit 4ac6667
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/doom/puredoom/DOOM.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ void free_wrapper(void *p) {
free(p);
}

static void* doom_malloc_impl(int size)
{
return malloc((size_t)size);
}
static void doom_free_impl(void* ptr) {
free(ptr);
}
static void doom_exit_impl(int code)
{
exit(code);
}


char error_buf[260];
int doom_flags = 0;
doom_print_fn doom_print = 0;
Expand Down

0 comments on commit 4ac6667

Please sign in to comment.