diff --git a/cmaybe.h b/cmaybe.h index 152ece3..bdfb824 100644 --- a/cmaybe.h +++ b/cmaybe.h @@ -1,3 +1,6 @@ +#ifndef __CMAYBE_H__ +#define __CMAYBE_H__ + #define MAYBE_TYPE(name, type) struct maybe_##name {type value; char is_value;} #define MAYBE(name) struct maybe_##name @@ -15,3 +18,5 @@ #define IS_VALUE(x) if((x).is_value) #define IS_NOT_VALUE(x) if(!(x).is_value) #define VALUE(x) (x).value + +#endif