This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - Try to find libsigc++ include dirs and libraries | |
# | |
# Usage of this module as follows: | |
# | |
# find_package(SIGCXX) | |
# | |
# Variables used by this module, they can change the default behaviour and need | |
# to be set before calling find_package: | |
# | |
# SIGCXX_ROOT_DIR Set this variable to the root installation of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - Try to find libdbus-c++-1 include dirs and libraries | |
# | |
# Usage of this module as follows: | |
# | |
# find_package(DBusCXX) | |
# | |
# Variables used by this module, they can change the default behaviour and need | |
# to be set before calling find_package: | |
# | |
# DBusCXX_ROOT_DIR Set this variable to the root installation of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <array> | |
#include <iostream> | |
#include <variant> | |
static_assert(__GNUC__, "Unsupported compiler"); | |
using BYTE = uint8_t; | |
using WORD = uint16_t; | |
using DWORD = uint32_t; | |
using INT32 = int32_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <tuple> | |
#include <type_traits> | |
#include <utility> | |
template <bool... Bs> using bool_sequence = std::integer_sequence<bool, Bs...>; | |
template <bool... Bs> | |
using bool_and = | |
std::is_same<bool_sequence<Bs...>, bool_sequence<(Bs || true)...>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <functional> | |
#include <iostream> | |
#include <memory> | |
#include <thread> | |
#include <vector> | |
#include <zmq.hpp> | |
#define within(num) (int)((float)((num)*random()) / (RAND_MAX + 1.0)) | |
// This is our client task class. |