Skip to content

Commit

Permalink
linux linking
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jul 3, 2024
1 parent c4ff217 commit f7f904c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/libs/strings/src/hstring_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct HStringHeader {
}

impl HStringHeader {
#[inline]
pub fn alloc(len: u32, zero_memory: bool) -> Result<*mut Self> {
if len == 0 {
return Ok(core::ptr::null_mut());
Expand Down Expand Up @@ -45,6 +46,7 @@ impl HStringHeader {
Ok(header)
}

#[inline]
pub unsafe fn free(header: *mut Self) {
if header.is_null() {
return;
Expand Down

0 comments on commit f7f904c

Please sign in to comment.