PMunch / futhark

Automatic wrapping of C headers in Nim
MIT License
355 stars 19 forks source link

How to specify the value of "define" ? #61

Closed dinau closed 1 year ago

dinau commented 1 year ago

For instance this is error,

import futhark:
  syspath fooPath
  path barPath
  define MY_DEFINE=3
  define DIMGUI_IMPL_API="extern \"C\" __declspec(dllexport)"

How to define the value of "define" ?

PMunch commented 1 year ago

Define currently only takes a string, so to define a value like this you would need to do:

define "MY_DEFINE=3"
dinau commented 1 year ago

Thank you very much !.