I have following code:
const char *login_msg_type = "A";
struct handler handlers[] = {
{"0", res_heartbeat},
{login_msg_type, res_login},
};
Compiler throws an error stating that "initializer element is not constant". Well, I know I can #define
that value but I want the variable to have a type. Is it possible?