-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Passed fmt to match latest V syntax format
- Loading branch information
1 parent
7fa7171
commit 02221fd
Showing
36 changed files
with
275 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
module errors | ||
|
||
[inline] | ||
@[inline] | ||
pub fn error(reason string, error_code ErrorCode) IError { | ||
return error_with_code(error_message(reason, error_code), int(error_code)) | ||
} | ||
|
||
[inline] | ||
@[inline] | ||
pub fn vsl_panic(reason string, error_code ErrorCode) { | ||
panic(error_message(reason, error_code)) | ||
} | ||
|
||
[inline] | ||
@[inline] | ||
pub fn error_message(reason string, error_code ErrorCode) string { | ||
return 'VSL Error: (${error_code}) ${reason}' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ module fun | |
import math | ||
import vsl.poly | ||
|
||
[inline] | ||
@[inline] | ||
pub fn digamma(x f64) f64 { | ||
return psi(x) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.