Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiecnt committed Sep 4, 2024
1 parent 4358a13 commit bbcca54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ use windows::Win32::System::SystemServices::IMAGE_DOS_HEADER;

static PROGRAM: LazyLock<Program> = LazyLock::new(Program::init);

/// Returns a reference to the global [`Program`] instance.
#[inline]
pub fn program() -> &'static Program {
&PROGRAM
}

/// Represents the program's in-memory layout, providing access to its base address, size,
/// and sections.
#[derive(Debug)]
pub struct Program {
base: Base,
Expand Down

0 comments on commit bbcca54

Please sign in to comment.