msb continuation ((ammend))
This commit is contained in:
parent
9e871a97a4
commit
dfc9ced33c
1 changed files with 12 additions and 1 deletions
13
src/main.rs
13
src/main.rs
|
@ -60,10 +60,21 @@ pub fn get_c_repr_type(dict: &mut impl TypeDict, t: laddertypes::TypeTerm, skip_
|
||||||
} else {
|
} else {
|
||||||
Some(format!("{} *", c_type))
|
Some(format!("{} *", c_type))
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else if args[0] == laddertypes::TypeTerm::TypeID(dict.get_typeid(&"MsbCont".into()).unwrap())
|
||||||
|
{
|
||||||
|
let c_type = get_c_repr_type(dict, args[1].clone(), false)?;
|
||||||
|
if skip_pointer {
|
||||||
|
Some(c_type)
|
||||||
|
} else {
|
||||||
|
Some(format!("{} *", c_type))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => None
|
_ => None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue