loci: rename ASSERT to LOCI_ASSERT
This was polluting the namespace.
diff --git a/c_gen/templates/of_wire_buf.c b/c_gen/templates/of_wire_buf.c
index 13da8e3..7f759f9 100644
--- a/c_gen/templates/of_wire_buf.c
+++ b/c_gen/templates/of_wire_buf.c
@@ -131,12 +131,12 @@
uint8_t *src_ptr, *dst_ptr;
int cur_bytes;
- ASSERT(wbuf != NULL);
+ LOCI_ASSERT(wbuf != NULL);
cur_bytes = wbuf->current_bytes;
/* Doesn't make sense; mismatch in current buffer info */
- ASSERT(old_len + offset <= wbuf->current_bytes);
+ LOCI_ASSERT(old_len + offset <= wbuf->current_bytes);
wbuf->current_bytes += (new_len - old_len); // may decrease size
@@ -151,5 +151,5 @@
dst_ptr = &wbuf->buf[offset];
MEMCPY(dst_ptr, data, new_len);
- ASSERT(wbuf->current_bytes == cur_bytes + (new_len - old_len));
+ LOCI_ASSERT(wbuf->current_bytes == cur_bytes + (new_len - old_len));
}