Skip to main content

litex/common/
defaults.rs

1use std::rc::Rc;
2
3pub type LineFile = (usize, Rc<str>); // (line number, file path)
4
5pub const FILE_INDEX_FOR_BUILTIN: usize = 0;
6
7pub const DEFAULT_MANGLED_FN_PARAM_PREFIX: &str = "__";
8
9pub fn default_line_file() -> LineFile {
10    (0, Rc::from(""))
11}
12
13pub fn is_default_line_file(line_file: &LineFile) -> bool {
14    line_file.0 == 0 && line_file.1.is_empty()
15}