Skip to content

Commit

Permalink
remove ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Dec 21, 2024
1 parent cdfbf28 commit fe01893
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Sofa/framework/Config/src/sofa/Modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
Module ## name() = default;\
Module ## name(const Module ## name&) = delete;\
Module ## name& operator=(const Module ## name&) = delete;\
operator const char*() const { return moduleName; }\
operator std::string() const { return moduleName; }

#define END_MODULE(name)\
Expand All @@ -56,7 +55,7 @@ inline struct ModuleSofa
ModuleSofa() = default;
ModuleSofa(const ModuleSofa&) = delete;
ModuleSofa& operator=(const ModuleSofa&) = delete;
operator const char*() const { return moduleName; }
operator std::string() const { return moduleName; }

START_MODULE(Component, "Sofa.Component")
MODULE(AnimationLoop, "Sofa.Component.AnimationLoop")
Expand All @@ -66,9 +65,9 @@ inline struct ModuleSofa
MODULE(Intersection, "Sofa.Component.Collision.Detection.Intersection")
END_MODULE(Detection)
MODULE(Geometry, "Sofa.Component.Collision.Geometry")
START_MODULE(Response, "Sofa.Component.Collision")
MODULE(Contact, "Sofa.Component.Collision.Contact")
MODULE(Mapper, "Sofa.Component.Collision.Mapper")
START_MODULE(Response, "Sofa.Component.Collision.Response")
MODULE(Contact, "Sofa.Component.Collision.Response.Contact")
MODULE(Mapper, "Sofa.Component.Collision.Response.Mapper")
END_MODULE(Response)
END_MODULE(Collision)

Expand Down Expand Up @@ -132,8 +131,8 @@ inline struct ModuleSofa
MODULE(NonUniform, "Sofa.Component.SolidMechanics.FEM.NonUniform")
END_MODULE(FEM)

MODULE(Spring, "Sofa.Component.Spring")
MODULE(TensorMass, "Sofa.Component.TensorMass")
MODULE(Spring, "Sofa.Component.SolidMechanics.Spring")
MODULE(TensorMass, "Sofa.Component.SolidMechanics.TensorMass")
END_MODULE(SolidMechanics)

MODULE(StateContainer, "Sofa.Component.StateContainer")
Expand Down

0 comments on commit fe01893

Please sign in to comment.