commit 753b240d6fb63fc3e6774dfd652af58b3944dd9d
parent 5fe809189aa10c4d6465e5d00242576373bb0932
Author: Andres Navarro <canavarro82@gmail.com>
Date: Wed, 2 Mar 2011 09:27:40 -0300
Added make-empty-environment macro.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/kenvironment.h b/src/kenvironment.h
@@ -12,6 +12,7 @@
/* TEMP: for now allow only a single parent */
TValue kmake_environment(klisp_State *K, TValue parent);
+#define kmake_empty_environment(kst_) (kmake_environment(kst_, KNIL))
void kadd_binding(klisp_State *K, TValue env, TValue sym, TValue val);
TValue kget_binding(klisp_State *K, TValue env, TValue sym);