DYT/Tool/matlab/include/nav/planningcodegen_utils.hpp

46 lines
1.0 KiB
C++
Raw Permalink Normal View History

2024-11-22 15:19:31 +00:00
// Copyright 2019-2021 The MathWorks, Inc.
/**
* @file
* @brief Provide additional typedefs for planningcodegen
*/
#ifndef PLANNINGCODEGEN_UTILS_HPP
#define PLANNINGCODEGEN_UTILS_HPP
#if defined(BUILDING_LIBMWPLANNINGCODEGEN) // should be defined by the mw build infrastructure
#include "package.h" /* For DLL_EXPORT_SYM and EXTERN_C */
#include "tmwtypes.h" /* For uint32_T, boolean_T, etc */
#define PLANNINGCODEGEN_API DLL_EXPORT_SYM
#else /* BUILDING_LIBMWPLANNINGCODEGEN */
/* For uint32_T, boolean_T, etc */
/* Consuming MATLAB C++ module should define MATLAB_BUILTINS token in its makefile */
#if defined(MATLAB_MEX_FILE) || defined(BUILDING_UNITTEST) || defined(MATLAB_BUILTINS)
#include "tmwtypes.h"
#else
#include "rtwtypes.h"
#endif
#ifndef PLANNINGCODEGEN_API
#define PLANNINGCODEGEN_API
#endif
#endif /* BUILDING_LIBMWPLANNINGCODEGEN */
// just in case EXTERN_C has not been defined
#ifndef EXTERN_C
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C
#endif
#endif
#endif /* PLANNINGCODEGEN_UTILS_HPP */