Files
bun.sh/src/javascript/jsc/bindings/static_export.zig
Jarred Sumner 84d7234f24 cool
Former-commit-id: a7214ab61c
2021-07-26 16:39:40 -07:00

16 lines
410 B
Zig

const std = @import("std");
Type: type,
symbol_name: []const u8,
local_name: []const u8,
Parent: type,
pub fn Decl(comptime this: *const @This()) std.builtin.TypeInfo.Declaration {
return comptime std.meta.declarationInfo(this.Parent, this.local_name);
}
pub fn wrappedName(comptime this: *const @This()) []const u8 {
return comptime "wrap" ++ this.symbol_name;
}
pub const c_char = enum(u8) { _ };