Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32def.h

VA_START

VA_START (ap, pn) ((ap)[0]=(TInt8 *)&pn+((sizeof(pn)+sizeof(TInt)-1)&~(sizeof(TInt)-1)),(void)0)

Description

A macro used by Symbian OS code for handling a variable argument list in a function call.

Sets a pointer to point to the first of the variable arguments.

Typical usage:

Foo(CAbcdef aAbcdef,...)
   {
   VA_LIST list;
   VA_START(list, aAbcdef);
   // other code
   } 

Parameters

ap

A pointer used to hold the address of an argument in the variable argument list. After execution of the code generated by this macro, the pointer points to the first argument in the variable argument list. This symbol is usually declared as a VA_LIST type.

pn

The argument that immediately precedes the variable argument list.

See also: