summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter-aux.hpp
blob: ea05b88ed1d8574534c61c714f7e895a5a3c1cf4 (plain) (blame)
1
2
3
4
5
6
7
8
#ifndef MAGIC_INTERPRETER_AUX_HPP
#define MAGIC_INTERPRETER_AUX_HPP

#define CHECK_TYPE(v, t) ((v)->ty == t)

#define VAR(i) ((!env->vars || env->vars[i].ty == TY_UNDEF)? env->base_env->vars[i] : env->vars[i])

#endif /* !defined(MAGIC_INTERPRETER_AUX_H_) */