Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
log/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 _LOG_PKG (package) should be defined.
5
6
_list of the declaration modifiers for types:
7
classes: _LOG_CLASS
8
Function: _LOG_FUNC
9
Data: _LOG_DATA
10
11
Add compiler definition flags:
12
* _LOG_PKG when building a dynamic library (package)
13
* _LOG_ARC when including in a compile or using it as an archive.
14
*/
15
16
#pragma once
17
18
// Import of definitions for this target.
19
#include <
misc/gen/target.h
>
20
21
// When DL target and the hwl PKG is not used the shlib is being built.
22
#if IS_DL_TARGET && defined(_LOG_PKG)
23
#define _LOG_DATA TARGET_EXPORT
24
#define _LOG_FUNC TARGET_EXPORT
25
#define _LOG_CLASS TARGET_EXPORT
26
// Is used as an archive importing is not needed.
27
#elif defined(_LOG_ARC)
28
#define _LOG_DATA
29
#define _LOG_FUNC
30
#define _LOG_CLASS
31
// When no flags are defined, assume the package is imported.
32
#else
33
#define _LOG_DATA TARGET_IMPORT
34
#define _LOG_FUNC TARGET_IMPORT
35
#define _LOG_CLASS TARGET_IMPORT
36
#endif
target.h
src
com
log
global.h
Generated by
1.16.1