ALib C++ Framework
by
Library Version:
2605 R0
Documentation generated by
Loading...
Searching...
No Matches
ALib
src
alib
camp
camp.prepro.hpp
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of the \aliblong.
4
///
5
/// Copyright 2013-2026 A-Worx GmbH, Germany.
6
/// Published under #"mainpage_license".
7
//==================================================================================================
8
#ifndef HPP_ALIB_CAMP_PP
9
#define HPP_ALIB_CAMP_PP
10
#pragma once
11
12
#ifndef HPP_ALIB
13
# include "
alib/alib.prepro.hpp
"
14
#endif
15
16
//##################################################################################################
17
// Macro introduced by module ALib.Camp
18
//##################################################################################################
19
#if ALIB_CAMP
20
# define ALIB_RESOURCED_IN_CAMP( T, Camp, ResName ) \
21
ALIB_RESOURCED( T, &Camp.GetResourcePool(), Camp.ResourceCategory, ResName )
22
23
# define ALIB_CAMP_ENUM( T, TRecord, Camp, ResName ) \
24
ALIB_ENUMS_ASSIGN_RECORD( T, TRecord ) \
25
ALIB_RESOURCED_IN_CAMP( T, Camp, ResName )
26
27
# if !defined(ALIB_CAMP_OMIT_DEFAULT_RESOURCES)
28
# define ALIB_CAMP_OMIT_DEFAULT_RESOURCES 0
29
# endif
30
31
# if !defined ALIB_CAMP_RESOURCE_COMPILATION
32
# if ALIB_DEBUG
33
/// This symbol selects the implementation of the class #"DevtimeResourceCompiler" and
34
/// the availability of:
35
/// - type #"ResourceListEntry",
36
/// - type #"ResourceList",
37
/// - function #"LoadResourceFile",
38
/// - function #"PatchCPPFile", and
39
/// - function #"ListErrors".
40
///
41
/// With that, it controls whether resources are parsed from the `.alibrc` resource-files
42
/// at runtime and - on changes - are written into a C++ file.
43
///
44
/// If not pre-defined by the build system, this symbol defaults to:
45
/// - `1` in debug builds.
46
/// - `0` in non-debug builds.
47
///
48
# define ALIB_CAMP_RESOURCE_COMPILATION 1
49
# else
50
# define ALIB_CAMP_RESOURCE_COMPILATION 0
51
# endif
52
# endif
53
54
#endif
55
#endif
// HPP_ALIB_CAMP_PP
alib.prepro.hpp