SmolRTSP
0.1.3
A small, portable, extensible RTSP 1.0 implementation in C99
|
Optional values. More...
#include <datatype99.h>
#include <metalang99.h>
Go to the source code of this file.
Macros | |
#define | SMOLRTSP_DEF_OPTION(...) ML99_OVERLOAD(SMOLRTSP_PRIV_DEF_OPTION_, __VA_ARGS__) |
Defines a typed optional value. More... | |
Optional values.
#define SMOLRTSP_DEF_OPTION | ( | ... | ) | ML99_OVERLOAD(SMOLRTSP_PRIV_DEF_OPTION_, __VA_ARGS__) |
Defines a typed optional value.
SMOLRTSP_DEF_OPTION(T)
expands to datatype99(T##Option, (T##_Some, T), (T##_None))
.SMOLRTSP_DEF_OPTION(name, T)
expands to datatype99(name##Option, (name##_Some, T), (name##_None))
.See Datatype99 for the macro usage.