change clang-format
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
0496ea7259
commit
910f337d02
33 changed files with 217 additions and 254 deletions
|
|
@ -31,7 +31,9 @@ void ikarus_blueprint_delete(IkarusBlueprint * blueprint) {
|
|||
}
|
||||
|
||||
void ikarus_blueprint_get_properties(
|
||||
IkarusBlueprint const * blueprint, struct IkarusProperty ** properties_out, size_t properties_out_size
|
||||
IkarusBlueprint const * blueprint,
|
||||
struct IkarusProperty ** properties_out,
|
||||
size_t properties_out_size
|
||||
) {
|
||||
ikarus::util::fetch_multiple_buffered<IkarusId>(
|
||||
blueprint,
|
||||
|
|
@ -43,18 +45,15 @@ void ikarus_blueprint_get_properties(
|
|||
},
|
||||
properties_out,
|
||||
properties_out_size,
|
||||
[&](IkarusProject * project, IkarusFunctionContext * ctx, IkarusId id
|
||||
) -> cppbase::Result<IkarusProperty *, sqlitecpp::QueryError> {
|
||||
VTRY(
|
||||
auto const type, IkarusProperty::get_property_type(blueprint->project, id).on_error([ctx, id](auto const& err) {
|
||||
ctx->set_error(
|
||||
fmt::format("failed to fetch property {}'s type: {}", id, err),
|
||||
true,
|
||||
IkarusErrorInfo_Source_SubSystem,
|
||||
IkarusErrorInfo_Type_SubSystem_Database
|
||||
);
|
||||
})
|
||||
);
|
||||
[&](IkarusProject * project, IkarusFunctionContext * ctx, IkarusId id) -> cppbase::Result<IkarusProperty *, sqlitecpp::QueryError> {
|
||||
VTRY(auto const type, IkarusProperty::get_property_type(blueprint->project, id).on_error([ctx, id](auto const & err) {
|
||||
ctx->set_error(
|
||||
fmt::format("failed to fetch property {}'s type: {}", id, err),
|
||||
true,
|
||||
IkarusErrorInfo_Source_SubSystem,
|
||||
IkarusErrorInfo_Type_SubSystem_Database
|
||||
);
|
||||
}));
|
||||
|
||||
return cppbase::ok(project->get_property(id, type));
|
||||
}
|
||||
|
|
@ -75,7 +74,9 @@ size_t ikarus_blueprint_get_property_count(IkarusBlueprint const * blueprint) {
|
|||
}
|
||||
|
||||
void ikarus_blueprint_get_linked_entities(
|
||||
IkarusBlueprint const * blueprint, struct IkarusEntity ** entities_out, size_t entities_out_size
|
||||
IkarusBlueprint const * blueprint,
|
||||
struct IkarusEntity ** entities_out,
|
||||
size_t entities_out_size
|
||||
) {
|
||||
ikarus::util::fetch_multiple_buffered<IkarusId>(
|
||||
blueprint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue