summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/clients/tests.hpp
blob: 31746fe566a0ff3358a0fb06dd304ecd2ac58e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <vector>
#include <functional>

inline std::vector<std::function<bool()>> clientTestFns;

#define REGISTER_CLIENT_TEST_FN(fn)                                                                                                                                                \
    static auto _register_fn = [] {                                                                                                                                                \
        clientTestFns.emplace_back(fn);                                                                                                                                            \
        return 1;                                                                                                                                                                  \
    }();