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