McStas Readout Master 0.3.3
Loading...
Searching...
No Matches
readout_type_descriptions.h
Go to the documentation of this file.
1// Copyright (C) 2026 European Spallation Source, ERIC. See LICENSE file
2//===----------------------------------------------------------------------===//
13//===----------------------------------------------------------------------===//
14#pragma once
15
16#include "enums.h"
17
18#ifdef WIN32
19// Export symbols if compile flags "READOUT_SHARED" and "READOUT_EXPORT" are set on Windows.
20 #ifdef READOUT_SHARED
21 #ifdef READOUT_EXPORT
22 #define RL_API __declspec(dllexport)
23 #else
24 #define RL_API __declspec(dllimport)
25 #endif
26 #else
27 // Disable definition if linking statically.
28 #define RL_API
29 #endif
30#else
31// Disable definition for non-Win32 systems.
32#define RL_API
33#endif
34
39RL_API const char * readout_type_description(ReadoutType readout);
RL_API const char * readout_type_description(ReadoutType readout)
The canonical struct description for a sendable readout type.