Skip to content

substrate.h error ``` arc restrictions #35

@gitpc988

Description

@gitpc988

template
static inline Type_ &MSHookIvar(id self, const char *name) {
Ivar ivar(class_getInstanceVariable(object_getClass(self), name));
void *pointer(ivar == NULL ? NULL : reinterpret_cast<char *>(self) + ivar_getOffset(ivar));
return *reinterpret_cast<Type_ *>(pointer);
}

/opt/iOSOpenDev/include/substrate.h:167:41: Cast of an Objective-C pointer to 'char *' is disallowed with ARC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions