mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: lots of fixes
This commit is contained in:
@ -40,6 +40,11 @@ pub fn (b mut Builder) write(s string) {
|
||||
b.len += s.len
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) go_back(n int) {
|
||||
b.buf.trim(b.buf.len-n)
|
||||
//b.len -= n
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) writeln(s string) {
|
||||
// for c in s {
|
||||
// b.buf << c
|
||||
|
Reference in New Issue
Block a user