aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/static_export.zig
blob: 2a5189210565c146f74c4647c05edc84f3d9f4c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.Type.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;
}