ctypes: add more reasonable return value for define-enums
ctypes: document define-enums