library: cpp/std; cpp/inih demo: inihreader

This commit is contained in:
xushiwei
2024-07-13 17:51:06 +08:00
parent dbecf33924
commit 80d80ad8aa
14 changed files with 363 additions and 129 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/goplus/llgo/cpp/inih"
)
func demo1() {
func main() {
filename := c.Str("config.ini")
if inih.Parse(filename, func(user c.Pointer, section *c.Char, name *c.Char, value *c.Char) c.Int {