Skip to content

Commit

Permalink
fix missing doc comments for the new public fns panic_n/2, and panic_…
Browse files Browse the repository at this point in the history
…n2/3
  • Loading branch information
spytheman committed Jan 5, 2025
1 parent 090d7bf commit 389e57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vlib/builtin/builtin.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,19 @@ pub fn c_error_number_str(errnum int) string {
return err_msg
}

// panic prints an error message, followed by the given number, then exits the process with exit code of 1.
@[noreturn]
pub fn panic_n(s string, number1 i64) {
panic(s + number1.str())
}

// panic prints an error message, followed by the given numbers, then exits the process with exit code of 1.
@[noreturn]
pub fn panic_n2(s string, number1 i64, number2 i64) {
panic(s + number1.str() + ', ' + number2.str())
}

// panic prints an error message, followed by the given numbers, then exits the process with exit code of 1.
@[noreturn]
fn panic_n3(s string, number1 i64, number2 i64, number3 i64) {
panic(s + number1.str() + ', ' + number2.str() + ', ' + number2.str())
Expand Down

0 comments on commit 389e57b

Please sign in to comment.