typedef cannot be used on pointers Topic is solved

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
Posts: 17
Joined: Mon Nov 13, 2017 9:53 am

typedef cannot be used on pointers

Post by shanghaiwangyong »


I tried to use it like this:
typedef void * aatest;
typedef void* unsafe aatest;

Can't compile, please tell me how to use it correctly.

View Solution
User avatar
Respected Member
Posts: 306
Joined: Wed May 31, 2017 6:55 pm

Post by CousinItt »

You haven't said what kind of code you are trying to compile.

Assuming you mean xc, typedef void * unsafe aatest; will compile.