mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-24 01:01:15 -06:00
Tame the Shiny profiler. Make it switchable with define SLIC3R_PROFILE.
This commit is contained in:
parent
3d47c52b47
commit
9772584d78
17 changed files with 27 additions and 89 deletions
|
|
@ -86,40 +86,27 @@ extern "C" {
|
|||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if SHINY_IS_COMPILED == TRUE
|
||||
struct _ShinyNode;
|
||||
struct _ShinyZone;
|
||||
|
||||
typedef struct _ShinyNode* ShinyNodeCache;
|
||||
typedef struct _ShinyNode* ShinyNodeTable;
|
||||
#endif
|
||||
struct _ShinyNode;
|
||||
struct _ShinyZone;
|
||||
|
||||
typedef struct _ShinyNode* ShinyNodeCache;
|
||||
typedef struct _ShinyNode* ShinyNodeTable;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef SHINY_STATIC_LINK
|
||||
# define SHINY_API
|
||||
#else
|
||||
# define SHINY_API SHINY_EXPORT
|
||||
#endif
|
||||
|
||||
#define SHINY_API
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#if SHINY_COMPILER == SHINY_COMPILER_MSVC
|
||||
# define SHINY_INLINE __inline
|
||||
# define SHINY_UNUSED
|
||||
# define SHINY_EXPORT __declspec(dllexport)
|
||||
|
||||
#elif SHINY_COMPILER == SHINY_COMPILER_GNUC
|
||||
# define SHINY_INLINE inline
|
||||
# define SHINY_UNUSED __attribute__((unused))
|
||||
# define SHINY_EXPORT __attribute__((dllexport))
|
||||
|
||||
#elif SHINY_COMPILER == SHINY_COMPILER_OTHER
|
||||
# define SHINY_INLINE inline
|
||||
# define SHINY_UNUSED
|
||||
# define SHINY_EXPORT extern
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue