name_set_prototype_s_external_name_.htm
Navigation: Language Reference > 2 - Program Source Code Format > Prototype Attributes >====== NAME (set prototype's external name) ====== | |
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.
Example:
PROGRAM
MAP
MODULE('External.Obj')
AddCount PROCEDURE(LONG),LONG,C,NAME('_AddCount') !C function named '_AddCount'
END
END
See Also:
name_set_prototype_s_external_name_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1