WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_DEBUG_INITIALISER_C
#define WONKY_DEBUG_INITIALISER_C WONKY_DEBUG_INITIALISER_C
#include <debug_initialiser.h>

_Bool is_valid_initialiser_enum(enum Initialiser_Type initialiser_type)
{
	return initialiser_type>=0 && initialiser_type<INITIALISER_TYPE_END;
}
_Bool is_valid_initialiser(struct Initialiser *initialiser)
{
	return initialiser==NULL || is_valid_initialiser_enum(initialiser->kind);
}

_Bool is_valid_initialiser_denoted(struct Initialiser_Denoted *initialiser)
{
	return is_valid_initialiser_enum(initialiser->kind);
}
_Bool is_valid_initialiser_indexed(struct Initialiser_Indexed *initialiser)
{
	return is_valid_initialiser_enum(initialiser->kind);
}
_Bool is_valid_initialiser_expression(struct Initialiser_Expression *initialiser)
{
	return is_valid_initialiser_enum(initialiser->kind);
}
_Bool is_valid_initialiser_compound(struct Initialiser_Compound *initialiser)
{
	return is_valid_initialiser_enum(initialiser->kind);
}
_Bool is_valid_initialiser_error(struct Initialiser_Error *initialiser)
{
	return is_valid_initialiser_enum(initialiser->kind);
}
#endif