We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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;"