ILE C/C++ Compiler Reference


weak

>>-#--pragma--weak--(--identifier--+-------------+--)----------><
                                   +-=-----------+
                                   '-identifier2-'
 
 

Description

Identifies an identifier to the compiler as being a weak global symbol.

Parameters

identifier
Specifies the name of an identifier considered to be a weak global symbol.

identifier2
If identifer2 is specified, then identifier is considered to be a weak global symbol whose value is the same as identifier2. For this pragma to have effect, identifier2 must be defined in the same compilation unit.

This pragma can appear anywhere in a program, and identifies a specified identifier as being a weak global symbol. Identifier should not be defined, but it may be declared. If it is declared, and identifier2 is specified, identifier must be of a type compatible to that of identifier2.

Example.

    #pragma weak func1 = func2


[ Top of Page | Previous Page | Next Page | Table of Contents ]