[keel,studio] Cleanup
This commit is contained in:
parent
6ad79b305c
commit
aa970b1fc0
src/olympic
@ -15,7 +15,7 @@ using TypeDescGenerator = ox::Error(*)(ox::TypeStore&);
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
ox::Error generateTypeDesc(ox::TypeStore &ts) noexcept {
|
ox::Error generateTypeDesc(ox::TypeStore &ts) noexcept {
|
||||||
return ox::buildTypeDef<T>(&ts).error;
|
return ox::buildTypeDef<T>(ts).error;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Module {
|
class Module {
|
||||||
|
@ -136,7 +136,7 @@ ox::Error Project::writeObj(ox::StringViewCR path, T const&obj, ox::ClawFormat f
|
|||||||
oxReturnError(writeBuff(path, ox::BufferView{buff} + (fmt == ox::ClawFormat::Organic)));
|
oxReturnError(writeBuff(path, ox::BufferView{buff} + (fmt == ox::ClawFormat::Organic)));
|
||||||
// write type descriptor
|
// write type descriptor
|
||||||
if (m_typeStore.get<T>().error) {
|
if (m_typeStore.get<T>().error) {
|
||||||
oxReturnError(ox::buildTypeDef(&m_typeStore, &obj));
|
oxReturnError(ox::buildTypeDef(m_typeStore, obj));
|
||||||
}
|
}
|
||||||
oxRequire(desc, m_typeStore.get<T>());
|
oxRequire(desc, m_typeStore.get<T>());
|
||||||
auto const descPath = ox::sfmt("{}/{}", m_typeDescPath, buildTypeId(*desc));
|
auto const descPath = ox::sfmt("{}/{}", m_typeDescPath, buildTypeId(*desc));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user