Breush / odin-binding-generator

An Odin library to convert a C header file into an Odin binding file.
MIT License
42 stars 20 forks source link

Readme Usage out of date #1

Closed hazeycode closed 5 years ago

hazeycode commented 5 years ago

Should be something like

package generatebindings

import "bindgen"

main :: proc() {
    options : bindgen.GeneratorOptions;
    bindgen.generate(
        packageName="hello",
        foreignLibrary="system:libHello",
        outputFile="hello.odin",
        headerFiles=[]string{"./hello.h"},
        options = options,
    );
}
Breush commented 5 years ago

Indeed, the options was wrong, thanks for reporting.

hazeycode commented 5 years ago

main :: proc should also be main ::proc()