Skip to content

Commit

Permalink
Don't include malloc()/free() references if using MOJOSHADER_FORCE_AL…
Browse files Browse the repository at this point in the history
…LOCATOR.
  • Loading branch information
icculus committed Feb 13, 2009
1 parent 337d526 commit 7c3ef77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader.c
Expand Up @@ -237,8 +237,10 @@ struct Context


// Convenience functions for allocators...
#if !MOJOSHADER_FORCE_ALLOCATOR
void *MOJOSHADER_internal_malloc(int bytes, void *d) { return malloc(bytes); }
void MOJOSHADER_internal_free(void *ptr, void *d) { free(ptr); }
#endif

MOJOSHADER_error MOJOSHADER_out_of_mem_error = { "Out of memory", NULL, -1 };
MOJOSHADER_parseData MOJOSHADER_out_of_mem_data = {
Expand Down

0 comments on commit 7c3ef77

Please sign in to comment.