aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-09-19 16:13:56 +0200
committerAndrea Corallo2020-09-23 20:53:33 +0200
commit2ab0966b2fdf3a64d061727f005d32c5aad27594 (patch)
treedc6003cc8f3703be5cda454f9514bff637d42ee6 /src
parent9d4fd669cf9b97a89e8d1481b3ffedfe7a455152 (diff)
downloademacs-2ab0966b2fdf3a64d061727f005d32c5aad27594.tar.gz
emacs-2ab0966b2fdf3a64d061727f005d32c5aad27594.zip
Make CHECK_SUBR public
* src/data.c (CHECK_SUBR): Move from here to... * src/lisp.h (CHECK_SUBR): ...to here.
Diffstat (limited to 'src')
-rw-r--r--src/data.c6
-rw-r--r--src/lisp.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/data.c b/src/data.c
index 3f035269de1..8c39c319110 100644
--- a/src/data.c
+++ b/src/data.c
@@ -88,12 +88,6 @@ XOBJFWD (lispfwd a)
88} 88}
89 89
90static void 90static void
91CHECK_SUBR (Lisp_Object x)
92{
93 CHECK_TYPE (SUBRP (x), Qsubrp, x);
94}
95
96static void
97set_blv_found (struct Lisp_Buffer_Local_Value *blv, int found) 91set_blv_found (struct Lisp_Buffer_Local_Value *blv, int found)
98{ 92{
99 eassert (found == !EQ (blv->defcell, blv->valcell)); 93 eassert (found == !EQ (blv->defcell, blv->valcell));
diff --git a/src/lisp.h b/src/lisp.h
index cbc6a666471..452f48f3468 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2982,6 +2982,12 @@ CHECK_INTEGER (Lisp_Object x)
2982{ 2982{
2983 CHECK_TYPE (INTEGERP (x), Qnumberp, x); 2983 CHECK_TYPE (INTEGERP (x), Qnumberp, x);
2984} 2984}
2985
2986INLINE void
2987CHECK_SUBR (Lisp_Object x)
2988{
2989 CHECK_TYPE (SUBRP (x), Qsubrp, x);
2990}
2985 2991
2986 2992
2987/* If we're not dumping using the legacy dumper and we might be using 2993/* If we're not dumping using the legacy dumper and we might be using