It is currently Sat Sep 22, 2018 1:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: typedef void* t_handle
PostPosted: Mon Sep 10, 2018 10:54 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Jun 23, 2010 5:13 pm
Posts: 153
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".


Top
 Profile  
Reply with quote  
 Post subject: Re: typedef void* t_handle
PostPosted: Tue Sep 11, 2018 1:23 am 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1332
void is nothing.
void* is a pointer.
void** is a pointer to a pointer.

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
Reply with quote  
 Post subject: Re: typedef void* t_handle
PostPosted: Tue Sep 11, 2018 8:22 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Jun 23, 2010 5:13 pm
Posts: 153
ThanQ nco2k,
Clear, Understood


Top
 Profile  
Reply with quote  
 Post subject: Re: typedef void* t_handle
PostPosted: Tue Sep 11, 2018 9:31 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1425
Location: Germany
Read also the wiki about "typedef"
https://en.wikipedia.org/wiki/Typedef

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...


Top
 Profile  
Reply with quote  
 Post subject: Re: typedef void* t_handle
PostPosted: Wed Sep 12, 2018 7:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Jun 23, 2010 5:13 pm
Posts: 153
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye