arkanoid87 / futhark

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

Handle C++ static vars #6

Open arkanoid87 opened 1 year ago

arkanoid87 commented 1 year ago

eg

  struct __numeric_limits_base
  {                                
    /** This will be true for all fundamental types (which have   
        specializations), and false for everything else.  */     
    static _GLIBCXX_USE_CONSTEXPR bool is_specialized = false;
...
arkanoid87 commented 1 year ago

nim only shows how to wrap getter of these, looking for a r/w solution

https://github.com/nim-lang/Nim/blob/devel/tests/cpp/tstaticvar_via_typedesc.nim