请任何人帮助我。我想将 Objective-c 枚举转换为 android 枚举,如下所示:
// Objective-c enum
===================
typedef enum{
ab = 0,
bc = 1,
ca = 2
}PieceType;
// just print using android Logcat:
=================
Log("ab = ", ab+"");
Log("bc = ", bc+"");
Log("ca = ", ca+"");
================
Result:
ab = 0;
bc = 1;
ca = 2;
想要将上面的枚举转换为 android 枚举但在打印时保持相同的结果。