Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
If I have IDL like this:
enum CertificateStoreType
{
CERT = 1,
PKCS12 = 2
}
In header file, it will be:
enum _CertificateStoreType {
CERTIFICATE_STORE_TYPE_CERT = 1,
CERTIFICATE_STORE_TYPE_PKCS12 = 2
};
typedef enum _CertificateStoreType CertificateStoreType;
+ /* return the name of the constant */
+ const char *
+ toString_CertificateStoreType(int value);
In c file
+ /* return the name of the constant */
+ const char *
+ toString_CertificateStoreType(int value)
+ {
+ static __thread char buf[16] =
;
+ switch(value)
+ }