mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler2: proof of concept cgen
This commit is contained in:
@ -29,6 +29,9 @@ pub fn (b mut Builder) write_b(data byte) {
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) write(s string) {
|
||||
if s == '' {
|
||||
return
|
||||
}
|
||||
b.buf.push_many(s.str, s.len)
|
||||
// for c in s {
|
||||
// b.buf << c
|
||||
|
Reference in New Issue
Block a user