Skip to content
Snippets Groups Projects
Commit f270afad authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

[skip ci] wip

parent fd305230
No related branches found
No related tags found
1 merge request!25Draft: Resolve "Adapt to new sensor constructors in core"
......@@ -22,6 +22,7 @@
// Enable project-specific definitions and macros
#include "bodydynamics/internal/config.h"
#include "bodydynamics/utils/load_bodydynamics.h"
#include <core/common/wolf.h>
namespace wolf
......
......@@ -20,32 +20,21 @@
#pragma once
#include "core/utils/unused.h"
namespace wolf
{
// This class is just to force the .so to be easily loaded in tests
class LoadGnss
class LoadBodydynamics
{
public:
static bool aux_var;
};
#ifdef __GNUC__
#define WOLF_UNUSED __attribute__((used))
#elif defined _MSC_VER
#pragma warning(disable : Cxxxxx)
#define WOLF_UNUSED
#elif defined(__LCLINT__)
#define WOLF_UNUSED /*@unused@*/
#elif defined(__cplusplus)
#define WOLF_UNUSED
#else
#define UNUSED(x) x
#endif
#define WOLF_LOAD_GNSS \
#define WOLF_LOAD_BODYDYBAMICS \
namespace \
{ \
const bool WOLF_UNUSED aux_var_gnss = wolf::LoadGnss::aux_var; \
const bool WOLF_UNUSED aux_var_bodydynamics = wolf::LoadBodydynamics::aux_var; \
}
} // namespace wolf
......@@ -18,9 +18,9 @@
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "gnss/utils/load_gnss.h"
#include "bodydynamics/utils/load_bodydynamics.h"
namespace wolf
{
bool LoadGnss::aux_var = true;
bool LoadBodydynamics::aux_var = true;
} // namespace wolf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment