typedef cannot be used on pointers Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
shanghaiwangyong
Member++
Posts: 17
Joined: Mon Nov 13, 2017 9:53 am

typedef cannot be used on pointers

Post by shanghaiwangyong »

Hello,

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

Can't compile, please tell me how to use it correctly.
View Solution
User avatar
CousinItt
Respected Member
Posts: 367
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.