Skip to content

Commit

Permalink
feat: Expose a getter for Func::index (#272)
Browse files Browse the repository at this point in the history
Co-authored-by: wwared <[email protected]>
  • Loading branch information
wwared and wwared authored Aug 30, 2024
1 parent 6915aea commit 983e226
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lair/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,10 @@ impl<F> Func<F> {
pub fn output_size(&self) -> usize {
self.output_size
}

/// Getter for the index
#[inline]
pub fn index(&self) -> usize {
self.index
}
}

0 comments on commit 983e226

Please sign in to comment.