E
exquisitus
I have C code that I am converting to Java.
I have a few #defines of different types (example):
#define TOP_ONE 1 //Constant
#define max(x,y) ((x) > (y)) ? (x)y) //Macro definition
I also have some enumerations
typedef enum
{
x = 1000,
y = 1001
} myTag ;
Any suggestions as to the best way to convert these to Java. I remeber
reading somewhere that there was a gotcha somewhere when enums are
defined as static finals.
Any help appreciated. tkx
I have a few #defines of different types (example):
#define TOP_ONE 1 //Constant
#define max(x,y) ((x) > (y)) ? (x)y) //Macro definition
I also have some enumerations
typedef enum
{
x = 1000,
y = 1001
} myTag ;
Any suggestions as to the best way to convert these to Java. I remeber
reading somewhere that there was a gotcha somewhere when enums are
defined as static finals.
Any help appreciated. tkx