On 15 November 2017 at 00:17, Todd Blanchard wrote:
> Yeah, I don't know if that is necessarily worth doing TBH.
>
> Generally enumerations are going to be default int size unless you have
> values that are out of range.
>
> In this case you have a function that returns a
Yeah, I don't know if that is necessarily worth doing TBH.
Generally enumerations are going to be default int size unless you have values
that are out of range.
In this case you have a function that returns a long. In a strictly typed
language you would be required to do a type cast anyhow.
I have a C definition...
unsigned long FPDF_GetLastError();
whose return values are...
#define FPDF_ERR_SUCCESS 0// No error.
#define FPDF_ERR_UNKNOWN 1// Unknown error.
#define FPDF_ERR_FILE 2 // File not found or could not be opened.
#define FPDF_ERR_FORMAT 3 // File