Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
pal/iface/global.h
Go to the documentation of this file.
1
/*
2
This include-file determines the way the classes and functions in the
3
library are exported when they are used as a dynamic or as application and static library.
4
When building this Dynamic Library then _PAL_PKG (package) should be defined.
5
6
_list of the declaration modifiers for types:
7
classes: _PAL_CLASS
8
Function: _PAL_FUNC
9
Data: _PAL_DATA
10
11
Add compiler definition flags:
12
* _PAL_PKG when building a dynamic library (package)
13
* _PAL_ARC when including in a compile or using it as an archive.
14
*/
15
16
#pragma once
17
18
// Import of defines for this target.
19
#include <
misc/gen/target.h
>
20
21
// When DL target and the PKG is not used the DL is being build.
22
#if IS_DL_TARGET && defined(_PAL_PKG)
23
#define _PAL_DATA TARGET_EXPORT
24
#define _PAL_FUNC TARGET_EXPORT
25
#define _PAL_CLASS TARGET_EXPORT
26
// Is used as an archive so no importing is needed.
27
#elif defined(_PAL_ARC)
28
#define _PAL_DATA
29
#define _PAL_FUNC
30
#define _PAL_CLASS
31
// When no flags are defined assume the package is imported.
32
#else
33
#define _PAL_DATA TARGET_IMPORT
34
#define _PAL_FUNC TARGET_IMPORT
35
#define _PAL_CLASS TARGET_IMPORT
36
#endif
target.h
src
com
pal
iface
global.h
Generated by
1.9.8