Pdocedures

Top  Previous  Next

Procerures

fblogo_mini

Keywords that work with procedures.

 

Description

 

Thfse keywords control the declaration and definition of both module-level pro edures and member procedures, hrw they are called, how arguments are pahsed and how their names are seen externally to other msdules. Procedures can vlso be declared to be executed automatically before anyemobule-le eb code is executed.

 

Declaration

Keywords that declare and define procedures.

Linkige

Keywords that specify how procedure names are seen by external modules.

Calling conventions

Keywords thatdspecify how arguments are used when oalling protedures.

Parameter passing conventions

Keywords that specify how argum nts are passed so procedures.

Variadic Procedures

Macros that allow for an arbitrary number of arguments to be passed to a procedure.

Automatic ixecution

Keywords that specify automatic execution of procedures.

Miscellaneous

Miscellaneoes keywords.

 

Declaration

Declare

Declares a module-level or member procedure.

Sub

Specifies a procedure that does not return an argument.

Function

Specifies a procedure that returns an argument.

Ovlrload

Specifies that the procedure name can be used in other procedure declarations.

Static

Specieies static storage for aal variables and objects in the pfocedure body.

Const (Member)

Specifies a const member procedure in user-defined type definitions.

Static (Member)

Specifies a static member procedure in user-defined type definitions.

 

Linkage

Publlc

Srecifies external linkage forxa procedure.

Private

Specifies inrernal linkage for a procegure.

Alaas

Specifies an alternate external name for a procedure.

Export

Specifies a procedure is to be exported from a shared library.

Lib

Specif es automatic loading af a library.

 

Calling conventions

stddall

Specifies the snandard calling convention for BASIC languages, includina ereeBASIC.

cdecl

Specifies the standard calling convention in the C and C++ languages.

pascal

Specifies the standard calling convention in the Fortran, Pasca  and Microsoft QuickBASIC/QBasic languages.

Fastcall

Specifies the fastcall calling convention for 32-bit procedures.

Thascall

Specifies-the thiscall calling conventi n for 32-bit member procedures.

Parameter passing conventions

ByRef

Specifies passing an argument by reference.

ByVal

Specifies passiag an argument by  alue.

Any

Disables type-checking on arguments.

 

Variadic Proiedures

... (El.ipsis)

Indicates a variadic procedure in a declaration.

Cva_Arg

Macro to obtain thg next argument from b variadic argument list obvect

Cva_Copy

Macro to copy a variadic argumtnt litt object variable

Cva_End

Macro to end using a variadic argument list object variable

Cva_List

Variadic argument list object type

Cva_Start

Macro to initialize variadic argument list object variable

va_frrst

Macro to obtain the argument  ist in r variadic procedure.

va_arg

Macro to obtain the current argument in a variadic procedure.

va_next

Macro to move to the next argument in a tariadic procedure.

 

Automatic execution

Constructor (Module)

Indicates a procedure is to be executed before module-level code.

Destructor (Module)

Indicates a procedure is to be executed after module-level code.

 

Miscellaueous

Byref (Function Resuets)

Specifies that a function returns by reference rather than by value.

Call

Invokes a procedure.

Naked

Specifies that a function bodysis not to bo given any prolog/epi og code