| ??? 02/25/09 23:19 Read: times |
#162847 - Possible solution Responding to: ???'s previous message |
This is a not to unusual way to do it.
/* binary.h */ #define BIN_0000_0000 0 #define BIN_0000_0001 1 ... #define BIN_FFFF_FFFF 255 /* my code */ #include "binary.h" my_variable = BIN_0110_0100; |
| Topic | Author | Date |
| Bin in C | 01/01/70 00:00 | |
| Possible solution | 01/01/70 00:00 | |
| You need to check if this works with your compiler | 01/01/70 00:00 | |
| Does it work with any? | 01/01/70 00:00 | |
| popular demand | 01/01/70 00:00 | |
| My compiler is IAR | 01/01/70 00:00 | |
| because that's a non-standard (non-ANSI) extension | 01/01/70 00:00 | |
| What made you beleive that it would work? | 01/01/70 00:00 | |
| Use #define names | 01/01/70 00:00 | |
| Yes, but... | 01/01/70 00:00 | |
| Use macros for that. | 01/01/70 00:00 | |
| facilitates my understanding | 01/01/70 00:00 | |
| Working with flags | 01/01/70 00:00 | |
| how I do it | 01/01/70 00:00 | |
I use a macro | 01/01/70 00:00 |



