From 0f26e1d204d3a3026ca3edfc4c6bd9638b2632e7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2019 22:29:24 +0200 Subject: Add nullable, add bytecode documentation --- src/asm/x86_64.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/asm') 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)); -- cgit v1.2.3