diff options
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index a0725efef07..aa5849fee48 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -69,6 +69,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ static bool valgrind_p; #endif +#ifdef USE_LOCAL_ALLOCATORS +# if GC_MARK_STACK != GC_MAKE_GCPROS_NOOPS +# error "Stack-allocated Lisp objects are not compatible with GCPROs" +# endif +#endif + /* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects. Doable only if GC_MARK_STACK. */ #if ! GC_MARK_STACK |