Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
0422b066
Commit
0422b066
authored
Aug 26, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS
parent
cc2af73c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
server_demo_libevent.cpp
examples/server_demo_libevent/server_demo_libevent.cpp
+1
-9
hb_detail.h
include/hb_detail.h
+13
-0
No files found.
examples/server_demo_libevent/server_demo_libevent.cpp
View file @
0422b066
...
...
@@ -68,15 +68,7 @@ using namespace ademco;
using
namespace
hb
;
using
namespace
hb
::
common
;
// fix gcc cry
#ifdef __GNUG__
constexpr
Char
com
::
A1
::
data
[];
constexpr
Char
com
::
A2
::
data
[];
constexpr
Char
com
::
AC
::
data
[];
constexpr
Char
com
::
AD
::
data
[];
constexpr
Char
com
::
A5
::
data
[];
constexpr
Char
com
::
B0
::
data
[];
#endif
DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS
;
enum
class
QueryStage
{
...
...
include/hb_detail.h
View file @
0422b066
...
...
@@ -1043,6 +1043,19 @@ struct ResponseParser {
}
};
// fix gcc cry
#ifdef __GNUG__
#define DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS \
constexpr hb::Char hb::common::com::A1::data[]; \
constexpr hb::Char hb::common::com::A2::data[]; \
constexpr hb::Char hb::common::com::AC::data[]; \
constexpr hb::Char hb::common::com::AD::data[]; \
constexpr hb::Char hb::common::com::A5::data[]; \
constexpr hb::Char hb::common::com::B0::data[];
#else
#define DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS
#endif
}
// namespace com
}
// namespace common
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment