fix: change clite's LLGoPackage to true to execute its init()
This commit is contained in:
@@ -22,18 +22,6 @@ import (
|
||||
c "github.com/goplus/llgo/runtime/internal/clite"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if c.Stdin == nil {
|
||||
c.Stdin = c.Fopen(c.Str("/dev/stdin"), c.Str("r"))
|
||||
}
|
||||
if c.Stdout == nil {
|
||||
c.Stdout = c.Fopen(c.Str("/dev/stdout"), c.Str("w"))
|
||||
}
|
||||
if c.Stderr == nil {
|
||||
c.Stderr = c.Stdout
|
||||
}
|
||||
}
|
||||
|
||||
func boolCStr(v bool) *c.Char {
|
||||
if v {
|
||||
return c.Str("true")
|
||||
|
||||
Reference in New Issue
Block a user