Makefile: Add release and debug builds

This commit is contained in:
olemorud
2023-04-22 19:41:29 +02:00
parent 89dc8149c0
commit c1398004fc
2 changed files with 45 additions and 17 deletions

View File

@@ -41,6 +41,7 @@ void* calloc_or_die(size_t nmemb, size_t size)
// https://www.gnu.org/software/libc/manual/html_node/Backtraces.html
void print_trace()
{
#ifdef BACKTRACE
void* array[500];
char** strings;
int size, i;
@@ -55,4 +56,5 @@ void print_trace()
}
free(strings);
#endif
}