Skip to content

Commit

Permalink
test: hint on inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jan 8, 2024
1 parent 3e3487a commit 69d532c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ pub const SysCmd = struct {
pub const RunSysCmd = struct {
run: *Run,

pub fn expectHelloWorld(rsc: RunSysCmd) void {
pub inline fn expectHelloWorld(rsc: RunSysCmd) void {
rsc.run.expectStdOutEqual("Hello world!\n");
}

pub fn expectStdOutEqual(rsc: RunSysCmd, exp: []const u8) void {
pub inline fn expectStdOutEqual(rsc: RunSysCmd, exp: []const u8) void {
rsc.run.expectStdOutEqual(exp);
}

Expand All @@ -176,7 +176,7 @@ pub const RunSysCmd = struct {
});
}

pub fn expectStdErrEqual(rsc: RunSysCmd, exp: []const u8) void {
pub inline fn expectStdErrEqual(rsc: RunSysCmd, exp: []const u8) void {
rsc.run.expectStdErrEqual(exp);
}

Expand Down

0 comments on commit 69d532c

Please sign in to comment.