Hi,
My code:
#ifndef __LPC_TYPES_H #define __LPC_TYPES_H
#include <stdint.h>
(49) typedef enum {FALSE = 0, TRUE = !FALSE} Bool;
typedef enum {RESET = 0, SET = !RESET} FlagStatus, IntStatus, SetState; #define PARAM_SETSTATE(State) ((State==RESET) || (State==SET))
I'm getting the below mentioned error:
lpc_types.h(49): error: #40: expected an identifier.
Please Help!
one of two a) you do not read, or follow, directions b) you believe code with everything lumped together in on line is readable
anyhow, as said if it was readable, maybe I could help you
Erik
I'm sorry, i didn't pay attention, here's my code:
#ifndef __LPC_TYPES_H #define __LPC_TYPES_H #include <stdint.h> typedef enum {FALSE = 0, TRUE = !FALSE} Bool; typedef enum {RESET = 0, SET = !RESET} FlagStatus, IntStatus, SetState; #define PARAM_SETSTATE(State) ((State==RESET) || (State==SET))
lpc_types.h(49): error: #40: expected an identifier. Line Number (49) is "typedef enum {FALSE = 0, TRUE = !FALSE} Bool;"