Sorry if my From name appears weird, I am still fighting with this email client...
languagespec.h would have:
#define DEF_CONSTANT(NAME,VALUE) int NAME = VALUE;
NAME = VALUE;
I vaguely remember a tool that generated bindings of this sort automatically for a variety of languages. Any pointers would be appreciated.