Page 1 of 1

Accessing #define's with import?

Posted: Fri Dec 11, 2009 8:28 pm
by methodic
Hi, is there a way to import or use #define's from a library?

Thanks!

Re: Accessing #define's with import?

Posted: Sat Dec 12, 2009 5:34 am
by itistoday
No way to do this from the library itself as it doesn't contain that information.

If you have the source to the library and are ambitious though you can write a script to parse the header file... But usually you just find the constants you want and define them yourself.