[asterisk-dev] ast_pthread_create

Steve Murphy murf at digium.com
Tue Oct 7 08:13:11 CDT 2008


On Tue, 2008-10-07 at 08:20 -0300, Gnu Devel wrote:
> In file util.h is defined :
> 
> #define ast_pthread_create(a, b, c, d)                 \
>     ast_pthread_create_stack(a, b, c, d,            \
>         0, __FILE__, __FUNCTION__, __LINE__, #c)
> 
> I want to use it, but I do not what mean :
> 
> __FILE__, __FUNCTION__, __LINE__, #c, etc,
> 
> Can you help me?
> 
> THX

gnudevel--

__FILE__, etc, are prepocessor directives that gcc 
will turn into file names, function names, and line numbers.
So, ast_pthread_create_stack(0, "somefile.c", "somefunc", 304,
"whatever")
could be the result. Look it all up in the gcc documentation,
mayhaps also the ansi-C specifications.

murf

-- 
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20081007/097a0c60/attachment-0001.bin 


More information about the asterisk-dev mailing list