18 lines
203 B
C
18 lines
203 B
C
|
|
#include <assert.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "smalloc.h"
|
|
|
|
void* smalloc(size_t size)
|
|
{
|
|
void* ptr = malloc(size);
|
|
|
|
if (!ptr)
|
|
{
|
|
assert(!"TODO");
|
|
}
|
|
|
|
return ptr;
|
|
}
|
|
|