summaryrefslogtreecommitdiff
path: root/libguile/variable.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/variable.h')
-rw-r--r--libguile/variable.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libguile/variable.h b/libguile/variable.h
index c024c8519..6262e0c52 100644
--- a/libguile/variable.h
+++ b/libguile/variable.h
@@ -3,7 +3,8 @@
#ifndef SCM_VARIABLE_H
#define SCM_VARIABLE_H
-/* Copyright (C) 1995,1996,2000,2001, 2006, 2008, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1996,2000-2001,2006,2008,2011,2018
+ * Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -24,7 +25,7 @@
#include "libguile/__scm.h"
-#include "libguile/smob.h"
+#include <libguile/error.h>
@@ -35,6 +36,9 @@
#define SCM_VARIABLE_SET(V, X) SCM_SET_CELL_OBJECT_1 (V, X)
#define SCM_VARIABLE_LOC(V) (SCM_CELL_OBJECT_LOC ((V), 1))
+#define SCM_VALIDATE_VARIABLE(pos, var) \
+ SCM_MAKE_VALIDATE_MSG (pos, var, VARIABLEP, "variable")
+
SCM_API SCM scm_make_variable (SCM init);