summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter-aux.hpp
blob: 983d3d616beb9814ee8599ccbfdccfacd726f533 (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 // MAGIC_INTERPRETER_AUX_HPP