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

cgen: add builtin.init call inside of _vinit

This commit is contained in:
Alexey
2020-04-03 14:27:19 +03:00
committed by GitHub
parent 50b9faf347
commit 6c4de001b8
4 changed files with 12 additions and 9 deletions

View File

@ -21,6 +21,10 @@ const (
fn C.puts(charptr)
*/
fn init() {
// Do nothing
}
pub fn println(s string) {
// TODO: a syscall sys_write on linux works, except for the v repl.
// Probably it is a stdio buffering issue. Needs more testing...