/*
 * rtg_compiler.h
 *
 *  Created on: 07/nov/2017
 *      Author: chessaa
 */

#ifndef RTG_COMPILER_H_
#define RTG_COMPILER_H_

#include <stdint.h>

#ifdef __cplusplus
#if __cplusplus>=201103L
#define GRIFO_COMPILER_CPP11_ 1
#endif
#endif


#ifdef GRIFO_COMPILER_CPP11_
#define CPP_ENUM_BASE(type_)	: type_

#define CPP_ENUM_STRUCT(name_) enum struct name_
#define CPP_ENUM_STRCUT_END

#define CPP_CONSTEXPR	constexpr

#else

#define CPP_ENUM_BASE(type_)

#define CPP_ENUM_STRUCT(name_) struct name_ { enum name_##_enum_values {
#define CPP_ENUM_STRCUT_END	}

#define override
#define constexpr
#define CPP_CONSTEXPR

#endif


#endif /* RTG_COMPILER_H_ */
