Closed Xe closed 3 years ago
worth noting that
enum message_type {
MESSAGE_TYPE_NOTICE,
MESSAGE_TYPE_PRIVMSG,
MESSAGE_TYPE_COUNT
};
const char *cmdname[MESSAGE_TYPE_COUNT] = {
"PRIVMSG",
"NOTICE",
};
fixes it.
Expected output:
type
message_type* = enum
MESSAGE_TYPE_NOTICE, MESSAGE_TYPE_PRIVMSG, MESSAGE_TYPE_COUNT
var cmdname*: array[MESSAGE_TYPE_COUNT, cstring] = ["PRIVMSG", "NOTICE"]