mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-29 10:55:47 -05:00
fix mac build
This commit is contained in:
parent
962dca6ab2
commit
bd79f275cc
2 changed files with 21 additions and 15 deletions
|
@ -222,6 +222,7 @@ std::string SettingValue::getKey() const {
|
|||
>::createNode(float width) { \
|
||||
return type_##SettingNode::create(this, width); \
|
||||
} \
|
||||
template<> \
|
||||
typename type_##Setting::ValueType SettingValueSetter< \
|
||||
typename type_##Setting::ValueType \
|
||||
>::get(SettingValue* setting) { \
|
||||
|
@ -230,6 +231,7 @@ std::string SettingValue::getKey() const {
|
|||
} \
|
||||
return typename type_##Setting::ValueType(); \
|
||||
} \
|
||||
template<> \
|
||||
void SettingValueSetter< \
|
||||
typename type_##Setting::ValueType \
|
||||
>::set( \
|
||||
|
@ -250,6 +252,7 @@ std::string SettingValue::getKey() const {
|
|||
|
||||
// instantiate value setters
|
||||
|
||||
namespace geode {
|
||||
template struct SettingValueSetter<typename BoolSetting::ValueType>;
|
||||
template struct SettingValueSetter<typename IntSetting::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 ColorSetting::ValueType>;
|
||||
template struct SettingValueSetter<typename ColorAlphaSetting::ValueType>;
|
||||
}
|
||||
|
||||
// instantiate values
|
||||
|
||||
namespace geode {
|
||||
template class GeodeSettingValue<BoolSetting>;
|
||||
template class GeodeSettingValue<IntSetting>;
|
||||
template class GeodeSettingValue<FloatSetting>;
|
||||
|
@ -267,6 +272,7 @@ template class GeodeSettingValue<StringSetting>;
|
|||
template class GeodeSettingValue<FileSetting>;
|
||||
template class GeodeSettingValue<ColorSetting>;
|
||||
template class GeodeSettingValue<ColorAlphaSetting>;
|
||||
}
|
||||
|
||||
IMPL_NODE_AND_SETTERS(Bool);
|
||||
IMPL_NODE_AND_SETTERS(Int);
|
||||
|
|
Loading…
Reference in a new issue