Changeset View
Changeset View
Standalone View
Standalone View
libunwind/include/__libunwind_config.h
Show All 21 Lines | |||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM 287 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM 287 | ||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_OR1K 32 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_OR1K 32 | ||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_MIPS 65 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_MIPS 65 | ||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_SPARC 31 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_SPARC 31 | ||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_HEXAGON 34 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_HEXAGON 34 | ||||
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_RISCV 64 | #define _LIBUNWIND_HIGHEST_DWARF_REGISTER_RISCV 64 | ||||
#if defined(_LIBUNWIND_IS_NATIVE_ONLY) | #if defined(_LIBUNWIND_IS_NATIVE_ONLY) | ||||
# if defined(__linux__) | |||||
# define _LIBUNWIND_TARGET_LINUX 1 | |||||
compnerd: What do you think of having an else clause which sets this to 0 to allow using the macro as a… | |||||
D31078 was a previous attempt to establish a different macro convention for booleans (each macro is either undefined or defined to empty), but it seems to have left a lot of the macros defined to 1 anyway. e.g. _LIBUNWIND_TARGET_I386 was changed from 1 to empty, but none of the other target macros were affected. I don't currently have a opinion on what the convention should be, so I was trying to match what I thought the convention was (boolean macros are undefined or defined to 1, then checked with defined(...)). rprichard: D31078 was a previous attempt to establish a different macro convention for booleans (each… | |||||
# endif | |||||
# if defined(__i386__) | # if defined(__i386__) | ||||
# define _LIBUNWIND_TARGET_I386 | # define _LIBUNWIND_TARGET_I386 | ||||
# define _LIBUNWIND_CONTEXT_SIZE 8 | # define _LIBUNWIND_CONTEXT_SIZE 8 | ||||
# define _LIBUNWIND_CURSOR_SIZE 15 | # define _LIBUNWIND_CURSOR_SIZE 15 | ||||
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86 | # define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86 | ||||
# elif defined(__x86_64__) | # elif defined(__x86_64__) | ||||
# define _LIBUNWIND_TARGET_X86_64 1 | # define _LIBUNWIND_TARGET_X86_64 1 | ||||
# if defined(_WIN64) | # if defined(_WIN64) | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |
What do you think of having an else clause which sets this to 0 to allow using the macro as a condition rather than checking the definedness of it?