User Tools

Site Tools

Navigation:  Language Reference > 2 - Program Source Code Format > Prototype Attributes >====== NAME (set prototype's external name) ====== Previous pageReturn to chapter overviewNext page


NAME( constant )


NAME Specifies an “external” name for the linker.
constant A string constant containing the external name to assign. This is case sensitive.

The NAME attribute specifies an “external” name for the linker. The NAME attribute may be placed on a PROCEDURE Prototype. The constant supplies the external name used by the linker to identify the procedure or function from an external library or to provide a Clarion language prototype with an external name for external linkage (usually to eliminate the compiler's standard name mangling), making it easier to construct an export list for a .DLL to be used in other language projects.





AddCount PROCEDURE(LONG),LONG,C,NAME('_AddCount')  !C function named '_AddCount'



See Also:

PROCEDURE Prototypes

Name Mangling and C++ Compatibility

name_set_prototype_s_external_name_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)