Access c constant from Ada
问题 I have a header file with a type definition like this #ifndef SETSIZE #define SETSIZE 32 #endif typedef struct _set { unsigned array[SETSIZE]; } set_t; To use a corresponding C-function I need to have the set_t type available in Ada. The problem is that SETSIZE is a configurable parameter (with default value 32). If I understand it correctly I cannot access preprocessor defines from Ada. Would it be possible to add a constant to the c-file and use this in Ada like this: #ifndef SETSIZE