Refactored the HIDDEN macro into its own header
All checks were successful
Test And Build / Lint (push) Successful in 5s
Test And Build / Build (push) Successful in 5s

This commit is contained in:
2025-08-12 09:07:32 +02:00
parent c19e4845e4
commit 7965dd3b2e
5 changed files with 40 additions and 29 deletions

View File

@@ -6,25 +6,11 @@
#define DefaultMaxRepetitions 4
#include <asynDriver.h>
#include <macros.h>
#include <string.h>
#include <string>
#include <unordered_map>
/*
The macro "HIDDEN" hides the symbol of the annotated class / function. This is
useful to avoid symbol clashes when loading multiple shared libraries in a
single IOC. To override the hiding, add `-DHIDDEN= ` to your compiler
flags (in this case, the symbols will be exported with their default
visibility).
*/
#ifndef HIDDEN
#if defined(_WIN32) || defined(__CYGWIN__)
#define HIDDEN
#else
#define HIDDEN __attribute__((visibility("hidden")))
#endif
#endif
/**
* @brief Class to identify a message print location. See the docstring of
* `msgPrintControl` on how to use this key.