include/prism/util/pm_constant_pool.h in prism-0.19.0 vs include/prism/util/pm_constant_pool.h in prism-0.20.0
- old
+ new
@@ -17,9 +17,16 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/**
+ * When we allocate constants into the pool, we reserve 0 to mean that the slot
+ * is not yet filled. This constant is reused in other places to indicate the
+ * lack of a constant id.
+ */
+#define PM_CONSTANT_ID_UNSET 0
+
+/**
* A constant id is a unique identifier for a constant in the constant pool.
*/
typedef uint32_t pm_constant_id_t;
/**