Skip to content

Commit

Permalink
std: add the VM_MAKE_TAG macro for darwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and kubkon committed Mar 26, 2023
1 parent 32591c1 commit 1de64db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/std/c/darwin.zig
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ pub const VM_REGION_BASIC_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region
pub const VM_REGION_EXTENDED_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region_extended_info) / @sizeOf(natural_t);
pub const VM_REGION_TOP_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region_top_info) / @sizeOf(natural_t);

pub fn VM_MAKE_TAG(tag: u8) u32 {
return @as(u32, tag) << 24;
}

pub const vm_region_basic_info_64 = extern struct {
protection: vm_prot_t,
max_protection: vm_prot_t,
Expand Down

0 comments on commit 1de64db

Please sign in to comment.