fix mac build

This commit is contained in:
HJfod 2022-12-13 23:50:19 +02:00
parent 962dca6ab2
commit bd79f275cc
2 changed files with 21 additions and 15 deletions

View file

@ -222,6 +222,7 @@ std::string SettingValue::getKey() const {
>::createNode(float width) { \ >::createNode(float width) { \
return type_##SettingNode::create(this, width); \ return type_##SettingNode::create(this, width); \
} \ } \
template<> \
typename type_##Setting::ValueType SettingValueSetter< \ typename type_##Setting::ValueType SettingValueSetter< \
typename type_##Setting::ValueType \ typename type_##Setting::ValueType \
>::get(SettingValue* setting) { \ >::get(SettingValue* setting) { \
@ -230,6 +231,7 @@ std::string SettingValue::getKey() const {
} \ } \
return typename type_##Setting::ValueType(); \ return typename type_##Setting::ValueType(); \
} \ } \
template<> \
void SettingValueSetter< \ void SettingValueSetter< \
typename type_##Setting::ValueType \ typename type_##Setting::ValueType \
>::set( \ >::set( \
@ -250,6 +252,7 @@ std::string SettingValue::getKey() const {
// instantiate value setters // instantiate value setters
namespace geode {
template struct SettingValueSetter<typename BoolSetting::ValueType>; template struct SettingValueSetter<typename BoolSetting::ValueType>;
template struct SettingValueSetter<typename IntSetting::ValueType>; template struct SettingValueSetter<typename IntSetting::ValueType>;
template struct SettingValueSetter<typename FloatSetting::ValueType>; template struct SettingValueSetter<typename FloatSetting::ValueType>;
@ -257,9 +260,11 @@ template struct SettingValueSetter<typename StringSetting::ValueType>;
template struct SettingValueSetter<typename FileSetting::ValueType>; template struct SettingValueSetter<typename FileSetting::ValueType>;
template struct SettingValueSetter<typename ColorSetting::ValueType>; template struct SettingValueSetter<typename ColorSetting::ValueType>;
template struct SettingValueSetter<typename ColorAlphaSetting::ValueType>; template struct SettingValueSetter<typename ColorAlphaSetting::ValueType>;
}
// instantiate values // instantiate values
namespace geode {
template class GeodeSettingValue<BoolSetting>; template class GeodeSettingValue<BoolSetting>;
template class GeodeSettingValue<IntSetting>; template class GeodeSettingValue<IntSetting>;
template class GeodeSettingValue<FloatSetting>; template class GeodeSettingValue<FloatSetting>;
@ -267,6 +272,7 @@ template class GeodeSettingValue<StringSetting>;
template class GeodeSettingValue<FileSetting>; template class GeodeSettingValue<FileSetting>;
template class GeodeSettingValue<ColorSetting>; template class GeodeSettingValue<ColorSetting>;
template class GeodeSettingValue<ColorAlphaSetting>; template class GeodeSettingValue<ColorAlphaSetting>;
}
IMPL_NODE_AND_SETTERS(Bool); IMPL_NODE_AND_SETTERS(Bool);
IMPL_NODE_AND_SETTERS(Int); IMPL_NODE_AND_SETTERS(Int);