Can I test the type of a void pointer? I want to solve this problem:
void log(void *test) {
if (is a struct) {
NSLog(test);
} else {
printf("%s\n", test);
}
}
log(@"This send a struct (NSString)");
log("This send normal string");
There are a easy way to test it?