[ox/model] Make model friend macro constexpr and noexcept

(synced from 5ea36836bd)
This commit is contained in:
2022-02-10 02:06:13 -06:00
parent 3e9543ee77
commit c740900691
+1 -1
View File
@@ -11,4 +11,4 @@
#define oxModelBegin(modelName) template<typename T> constexpr ox::Error model(T *io, modelName *o) noexcept { io->template setTypeInfo<modelName>();
#define oxModelEnd() return OxError(0); }
#define oxModelField(fieldName) oxReturnError(io->field(#fieldName, &o->fieldName));
#define oxModelFriend(modelName) template<typename T> friend ox::Error model(T*, modelName*)
#define oxModelFriend(modelName) template<typename T> friend constexpr ox::Error model(T*, modelName*) noexcept