You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
373 B
C

#include "visibility.h"
#include "objc/runtime.h"
#include "gc_ops.h"
#include "class.h"
#include <stdlib.h>
static id allocate_class(Class cls, size_t extraBytes)
{
return calloc(cls->instance_size + extraBytes, 1);
}
PRIVATE struct gc_ops gc_ops_none =
{
.allocate_class = allocate_class
};
PRIVATE struct gc_ops *gc = &gc_ops_none;
PRIVATE BOOL isGCEnabled = NO;