SmolRTSP  0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
option.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <datatype99.h>
9 #include <metalang99.h>
10 
21 #define SMOLRTSP_DEF_OPTION(...) \
22  ML99_OVERLOAD(SMOLRTSP_PRIV_DEF_OPTION_, __VA_ARGS__)
23 
24 #ifndef DOXYGEN_IGNORE
25 
26 #define SMOLRTSP_PRIV_DEF_OPTION_1(T) \
27  datatype99(T##Option, (T##_Some, T), (T##_None))
28 #define SMOLRTSP_PRIV_DEF_OPTION_2(name, T) \
29  datatype99(name##Option, (name##_Some, T), (name##_None))
30 
31 #endif // DOXYGEN_IGNORE