1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/common.hpp

48 lines
782 B
C++
Raw Normal View History

2016-06-14 23:32:35 -04:00
#pragma once
#include <memory>
#include <string>
2017-01-10 21:07:28 -05:00
#include <vector>
2017-01-10 23:10:51 -05:00
#include <functional>
#include "settings.hpp"
2016-11-19 00:22:44 -05:00
#define POLYBAR_NS \
namespace polybar { \
inline namespace APP_VERSION_NAMESPACE {
2016-11-19 00:22:44 -05:00
#define POLYBAR_NS_END \
2016-11-25 02:42:31 -05:00
} \
2016-06-14 23:32:35 -04:00
}
2016-11-20 17:04:31 -05:00
#ifndef PIPE_READ
2016-06-14 23:32:35 -04:00
#define PIPE_READ 0
2016-11-20 17:04:31 -05:00
#endif
#ifndef PIPE_WRITE
2016-06-14 23:32:35 -04:00
#define PIPE_WRITE 1
2016-11-20 17:04:31 -05:00
#endif
2016-11-19 00:22:44 -05:00
POLYBAR_NS
2016-06-14 23:32:35 -04:00
using std::string;
using std::size_t;
2016-10-25 01:10:03 -04:00
using std::move;
2016-06-14 23:32:35 -04:00
using std::forward;
using std::pair;
2016-06-14 23:32:35 -04:00
using std::function;
using std::shared_ptr;
using std::unique_ptr;
using std::make_unique;
using std::make_shared;
using std::make_pair;
using std::array;
using std::vector;
using std::to_string;
using namespace std::string_literals;
2016-12-21 17:22:02 -05:00
constexpr size_t operator"" _z(unsigned long long n) {
return n;
}
2016-11-19 00:22:44 -05:00
POLYBAR_NS_END