1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cc/cgen: cached modules fixes

This commit is contained in:
Alexander Medvednikov
2020-04-28 13:15:37 +02:00
parent 761fb930ce
commit 1e4e882bc2
4 changed files with 37 additions and 5 deletions

View File

@ -47,6 +47,11 @@ pub fn (b mut Builder) go_back(n int) {
b.len -= n
}
pub fn (b mut Builder) go_back_to(pos int) {
b.buf.trim(pos)
b.len = pos
}
pub fn (b mut Builder) writeln(s string) {
// for c in s {
// b.buf << c