mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Merge branch 'trunk' into no-implicit-zig-allocator
This commit is contained in:
commit
c83e3ce27f
2 changed files with 314 additions and 309 deletions
|
@ -26,14 +26,14 @@ comptime {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export helpers - Must be run inside a comptime
|
// Export helpers - Must be run inside a comptime
|
||||||
fn exportBuiltinFn(comptime func: anytype, comptime funcName: []const u8) void {
|
fn exportBuiltinFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||||
@export(func, .{ .name = "roc_builtins." ++ funcName, .linkage = .Strong });
|
@export(func, .{ .name = "roc_builtins." ++ func_name, .linkage = .Strong });
|
||||||
}
|
}
|
||||||
fn exportNumFn(comptime func: anytype, comptime funcName: []const u8) void {
|
fn exportNumFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||||
exportBuiltinFn(func, "num." ++ funcName);
|
exportBuiltinFn(func, "num." ++ func_name);
|
||||||
}
|
}
|
||||||
fn exportStrFn(comptime func: anytype, comptime funcName: []const u8) void {
|
fn exportStrFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||||
exportBuiltinFn(func, "str." ++ funcName);
|
exportBuiltinFn(func, "str." ++ func_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run all tests in imported modules
|
// Run all tests in imported modules
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue