fix some things

This commit is contained in:
Folkert 2021-08-25 20:54:34 +02:00
parent 05d2b8150f
commit f04ad1643f
2 changed files with 18 additions and 0 deletions

View file

@ -180,6 +180,10 @@ impl<'a, 'ctx, 'env> Env<'a, 'ctx, 'env> {
ptr_int(self.context, self.ptr_bytes)
}
pub fn str_list_c_abi(&self) -> IntType<'ctx> {
crate::llvm::convert::str_list_int(self.context, self.ptr_bytes)
}
pub fn small_str_bytes(&self) -> u32 {
self.ptr_bytes * 2
}