Page 1 of 1

typedef void* t_handle

Posted: Mon Sep 10, 2018 10:54 pm
by LiK137
Hi,
not clear how to handle "typedef void* t_handle" cpp declaration in PureBasic?
Would be thankful if with examples.
And difference between "typedef void*" and "typedef void".

Re: typedef void* t_handle

Posted: Tue Sep 11, 2018 1:23 am
by nco2k
void is nothing.
void* is a pointer.
void** is a pointer to a pointer.

c ya,
nco2k

Re: typedef void* t_handle

Posted: Tue Sep 11, 2018 8:22 am
by LiK137
ThanQ nco2k,
Clear, Understood

Re: typedef void* t_handle

Posted: Tue Sep 11, 2018 9:31 am
by IceSoft
Read also the wiki about "typedef"
https://en.wikipedia.org/wiki/Typedef

Re: typedef void* t_handle

Posted: Wed Sep 12, 2018 7:14 pm
by LiK137
Very brief information.
I read it and find that link very helpful.
Such Sado-Maso like "typedef struct MyStruct newtype;" from that link brings to mind "Goto" keyword. I walked backwards *.h include files to find out those typedefs.
Anyway, the link You provided made related problems clear. Very big thanks for that.
But it is very useful in manner of macros.