aboutsummaryrefslogtreecommitdiff
path: root/src/asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm')
-rw-r--r--src/asm/x86_64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asm/x86_64.c b/src/asm/x86_64.c
index 2cbeead..16e6bc6 100644
--- a/src/asm/x86_64.c
+++ b/src/asm/x86_64.c
@@ -109,9 +109,11 @@ static CHECK_RESULT int asm_ensure_capacity(Asm *self, usize size) {
return 0;
}
+#ifdef DEBUG
static isize asm_get_capacity_left(Asm *self) {
return (isize)self->size - (isize)((u8*)self->code_it - (u8*)self->code);
}
+#endif
int asm_nop(Asm *self) {
return_if_error(asm_ensure_capacity(self, 1));