DYTSrouce/Tool/matlab/include/nav/mclcodegen_util.hpp

46 lines
992 B
C++
Raw Normal View History

2024-11-22 15:19:31 +00:00
/* Copyright 2019 The MathWorks, Inc. */
/**
* @file
* Utility functions for monteCarloLocalization functionality in codegen.
* To fully support code generation, note that this file needs to be fully
* compliant with the C++98 standard.
*/
#ifndef MCLCODEGEN_UTIL_HPP_
#define MCLCODEGEN_UTIL_HPP_
#if defined(BUILDING_LIBMWMCLCODEGEN)
/* For DLL_EXPORT_SYM and EXTERN_C */
#include "package.h"
/* For uint32_T, boolean_T, etc */
#include "tmwtypes.h"
#define MCL_CODEGEN_API DLL_EXPORT_SYM
#else
/* 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 EXTERN_C
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
#endif
#ifndef MCL_CODEGEN_API
#define MCL_CODEGEN_API
#endif
#endif /* else */
#endif /* MCLCODEGEN_UTIL_HPP_ */