WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_DEBUG_SCOPE_C
#define WONKY_DEBUG_SCOPE_C WONKY_DEBUG_SCOPE_C
#include <debug_scope.h>

_Bool is_valid_scope_enum(enum Scope_Type scope_type)
{
	return scope_type>=0 && scope_type<SCOPE_TYPE_END;
}
_Bool is_valid_scope(struct Scope *scope)
{
	return is_valid_scope_enum(scope->type);
}
_Bool is_valid_normal_scope(struct Normal_Scope *scope)
{
	return is_valid_scope_enum(scope->type);
}
_Bool is_valid_function_scope(struct Function_Scope *scope)
{
	return is_valid_scope_enum(scope->type);
}
#endif