import. NXP CodeWarrior Development Studio
Oglas
Oglas
import
Names of functions or global variables to export.
Remarks
When using the
#pragma export on
format, all functions in the source file being compiled will be accessible from outside the program or library that the compiler and linker are building.
Use the
#pragma export list
format to specify global variables and functions for exporting.
In C++, this form of the pragma applies to all variants of an overloaded function. You
Listing 33-1. Example of an Exported List
extern int f(),g;
#pragma export list f,g
33.3 import
Controls the importing of global data or functions.
Syntax
#pragma import on | off | reset
#pragma import list
name1 [,
name2 , ...]
name1 , name2
Names of functions or global variables to import.
Remarks
When using the
#pragma import on
format, all functions are automatically imported.
Use the
#pragma import list
format to specify data or functions for importing. In C++, this form of the pragma applies to all variants of an overloaded function. You cannot use this pragma for C++ member functions or static class members.
shows an example:
Listing 33-2. Example of an Imported List
extern int f(),g;
#pragma import list f,g
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
500 Freescale Semiconductor, Inc.
Prenesi
Oglas