vm: remove safe_malloc now that everything uses constructors instead

db4
Slava Pestov 2009-09-25 21:22:05 -05:00
parent f81c8549f4
commit f846afd661
2 changed files with 0 additions and 8 deletions

View File

@ -4,13 +4,6 @@ namespace factor
{
/* If memory allocation fails, bail out */
void *safe_malloc(size_t size)
{
void *ptr = malloc(size);
if(!ptr) fatal_error("Out of memory in safe_malloc", 0);
return ptr;
}
vm_char *safe_strdup(const vm_char *str)
{
vm_char *ptr = STRDUP(str);

View File

@ -1,6 +1,5 @@
namespace factor
{
void *safe_malloc(size_t size);
vm_char *safe_strdup(const vm_char *str);
void print_string(const char *str);
void nl();