mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
10 lines
417 B
Zig
10 lines
417 B
Zig
pub const std = @import("std");
|
|
pub const is_bindgen: bool = std.meta.globalOption("bindgen", bool) orelse false;
|
|
pub const StaticExport = @import("./static_export.zig");
|
|
pub const c_char = StaticExport.c_char;
|
|
pub usingnamespace @import("../../../global.zig");
|
|
|
|
pub fn zigCast(comptime Destination: type, value: anytype) *Destination {
|
|
return @ptrCast(*Destination, @alignCast(@alignOf(*Destination), value));
|
|
}
|