mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 13:03:48 -07:00
15 lines
519 B
C++
15 lines
519 B
C++
#include "ConfigValue.hpp"
|
|
#include "ConfigManager.hpp"
|
|
#include "../macros.hpp"
|
|
|
|
void local__configValuePopulate(void* const** p, const std::string& val) {
|
|
const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
|
|
|
|
*p = PVHYPRLANG->getDataStaticPtr();
|
|
}
|
|
|
|
std::type_index local__configValueTypeIdx(const std::string& val) {
|
|
const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
|
|
const auto ANY = PVHYPRLANG->getValue();
|
|
return std::type_index(ANY.type());
|
|
} |