xlab / c-for-go

Automatic C-Go Bindings Generator for Go Programming Language
https://c.for-go.com
MIT License
1.5k stars 119 forks source link

Example where C const get translated into Go typed const #157

Open sbezverk opened 1 year ago

sbezverk commented 1 year ago

Not an issue, it is information request...

Hello,

I was wondering if in current implementation a transaltion from:

define BIND_OPTION 0x1

would get translated into:

type BindOptions uint8

const ( BIND_OPTION BindOptions = 1 )

if it is possible, I would greatly appreciate an example of yml file. Thank you, Serguei