diff options
Diffstat (limited to 'src/environment.h')
| -rw-r--r-- | src/environment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h index fce6bc91..cbaae09b 100644 --- a/src/environment.h +++ b/src/environment.h @@ -85,6 +85,7 @@ env_t *namespace_env(env_t *env, const char *namespace_name); }) binding_t *get_binding(env_t *env, const char *name); binding_t *get_constructor(env_t *env, type_t *t, arg_ast_t *args); +PUREFUNC binding_t *get_metamethod_binding(env_t *env, ast_e tag, ast_t *lhs, ast_t *rhs, type_t *ret); void set_binding(env_t *env, const char *name, type_t *type, CORD code); binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name); #define code_err(ast, ...) compiler_err((ast)->file, (ast)->start, (ast)->end, __VA_ARGS__) |
