Author Topic: C function and type macros  (Read 5509 times)

shiv

  • Newbie
  • *
  • Posts: 12
    • View Profile
C function and type macros
« on: June 05, 2018, 07:59:24 PM »
I am trying to interface the C library lapacke to C2, however some of the functions and types in lapacke are defined to be macros. For example lapack_make_complex_float is a macro that takes 2 float arguments and returns a "complex" number whose type is the macro lapack_complex_float. Is there a way to handle these issues in the .c2i files? If the lapacke.h file could be #include'd in the generated C files this would be a solvable problem I think.

Otherwise I have to figure out the precise expansions of these macros on my platform and only write .c2i files for that.
Thanks.
--shiv--