Hyprland/hyprtester/src/tests/main/tests.hpp

13 lines
840 B
C++
Raw Normal View History

#pragma once
2025-06-27 12:18:45 +02:00
#include <vector>
#include <functional>
inline std::vector<std::function<bool()>> testFns;
#define REGISTER_TEST_FN(fn) \
static auto _register_fn = [] { \
testFns.emplace_back(fn); \
return 1; \
}();