Revision [22603]
This is an old revision of KeyPgCvaEnd made by JeffMarshall on 2019-03-10 14:13:09.
CVA_END
Macro to clean-up a variadic argument list object variable
Syntax:
cva_end( argument_list )
Description:
Cleans-up a cva_list type variable that was previously initialized with cva_start or cva_copy, like a destructor.
argument_list must already have been initialized with a previous cva_start or cva_copy statement in the same procedure as cva_end (for cross platform compatibility).
argument_list must already have been initialized with a previous cva_start or cva_copy statement in the same procedure as cva_end (for cross platform compatibility).
Examples:
Sub proc CDecl(count As Integer, ... )
Dim args As cva_list
cva_start( args, count )
For i As Integer = 1 To count
Print cva_arg( args, Integer )
Next
cva_end( args )
End Sub
proc( 4, 4000, 300, 20, 1 )
Dim args As cva_list
cva_start( args, count )
For i As Integer = 1 To count
Print cva_arg( args, Integer )
Next
cva_end( args )
End Sub
proc( 4, 4000, 300, 20, 1 )
Dialect Differences:
- Not available in the -lang qb dialect unless referenced with the alias __cva_end.
Differences from QB:
- New to FreeBASIC
See also:
Back to Procedures
Back to Variable Argument list