1 2 3 4 5 6 7 8 9 10 11 12 13 14
%{ #include "swkey.h" %} class SW_POSITION { public: SW_POSITION(char ipos); }; %define POS_TOP ((char)1) %define POS_BOTTOM ((char)2) %define TOP SW_POSITION(POS_TOP) %define BOTTOM SW_POSITION(POS_BOTTOM)