I keep getting an invalid initializer error in this line:
StackObject_t new = (StackObject_t*)malloc(sizeof(StackObject_t));
The StackObject_t type is defined as such:
typedef struct stackObject* pStackObject_t;
typedef struct stackObject
{
void* obj;
pStackObject_t next;
} StackObject_t;