#include "gc.h"
+#ifndef LISP_FEATURE_GENCGC
+#error "gencgc-alloc-region.h included, but LISP_FEATURE_GENCGC not defined"
+#endif
+
/* Abstract out the data for an allocation region allowing a single
* routine to be used for allocation and closing. */
struct alloc_region {
void *end_addr; /* pointer to the byte after the last usable byte */
/* These are needed when closing the region. */
- long first_page;
- long last_page;
+ page_index_t first_page;
+ page_index_t last_page;
void *start_addr;
};