mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: generate init()
This commit is contained in:
@ -72,7 +72,9 @@ pub fn (b &Builder) after(n int) string {
|
||||
return ''
|
||||
}
|
||||
buf := b.buf[n..]
|
||||
return string(buf.clone())
|
||||
mut copy := buf.clone()
|
||||
copy << `\0`
|
||||
return string(copy)
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) str() string {
|
||||
|
Reference in New Issue
Block a user