I have some legacy function that in the input only accept some int. how properly document them and tell that the input of the function can be only one of the defined items?
#define API_TYPE1 0
#define API_TYPE2 1
/**
* @param[in] argument1 can be either @sa API_TYPE1 or @sa API_TYPE2
*/
int TestAPI(
int argument1,
string argument2
);
// usage should be like this
TestAPI(API_TYPE1, "http://someurl.com");