mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-25 17:07:58 -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) { \
|
>::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,23 +252,27 @@ std::string SettingValue::getKey() const {
|
||||||
|
|
||||||
// instantiate value setters
|
// instantiate value setters
|
||||||
|
|
||||||
template struct SettingValueSetter<typename BoolSetting::ValueType>;
|
namespace geode {
|
||||||
template struct SettingValueSetter<typename IntSetting::ValueType>;
|
template struct SettingValueSetter<typename BoolSetting::ValueType>;
|
||||||
template struct SettingValueSetter<typename FloatSetting::ValueType>;
|
template struct SettingValueSetter<typename IntSetting::ValueType>;
|
||||||
template struct SettingValueSetter<typename StringSetting::ValueType>;
|
template struct SettingValueSetter<typename FloatSetting::ValueType>;
|
||||||
template struct SettingValueSetter<typename FileSetting::ValueType>;
|
template struct SettingValueSetter<typename StringSetting::ValueType>;
|
||||||
template struct SettingValueSetter<typename ColorSetting::ValueType>;
|
template struct SettingValueSetter<typename FileSetting::ValueType>;
|
||||||
template struct SettingValueSetter<typename ColorAlphaSetting::ValueType>;
|
template struct SettingValueSetter<typename ColorSetting::ValueType>;
|
||||||
|
template struct SettingValueSetter<typename ColorAlphaSetting::ValueType>;
|
||||||
|
}
|
||||||
|
|
||||||
// instantiate values
|
// instantiate values
|
||||||
|
|
||||||
template class GeodeSettingValue<BoolSetting>;
|
namespace geode {
|
||||||
template class GeodeSettingValue<IntSetting>;
|
template class GeodeSettingValue<BoolSetting>;
|
||||||
template class GeodeSettingValue<FloatSetting>;
|
template class GeodeSettingValue<IntSetting>;
|
||||||
template class GeodeSettingValue<StringSetting>;
|
template class GeodeSettingValue<FloatSetting>;
|
||||||
template class GeodeSettingValue<FileSetting>;
|
template class GeodeSettingValue<StringSetting>;
|
||||||
template class GeodeSettingValue<ColorSetting>;
|
template class GeodeSettingValue<FileSetting>;
|
||||||
template class GeodeSettingValue<ColorAlphaSetting>;
|
template class GeodeSettingValue<ColorSetting>;
|
||||||
|
template class GeodeSettingValue<ColorAlphaSetting>;
|
||||||
|
}
|
||||||
|
|
||||||
IMPL_NODE_AND_SETTERS(Bool);
|
IMPL_NODE_AND_SETTERS(Bool);
|
||||||
IMPL_NODE_AND_SETTERS(Int);
|
IMPL_NODE_AND_SETTERS(Int);
|
||||||
|
|
Loading…
Reference in a new issue