diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-09-22 15:58:00 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-09-22 15:58:00 -0700 |
| commit | ef577177747fd0a4778b92f762e0964d0ba3aafc (patch) | |
| tree | 427ad0ebf07e39201ad9c4fc63afec35cee64ab2 /config.def.h | |
| parent | c11e4bd4fa4bd298bafa8adee4f399f0fabb0643 (diff) | |
Per-ASK() history for `ask` using the __COUNTER__ macro
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 6ee1c3f..59723a8 100644 --- a/config.def.h +++ b/config.def.h @@ -95,8 +95,12 @@ typedef struct { #define SH "sh" #endif -// Some handy macros for common shell script behaviors: +// Used for STRINGIFY(__COUNTER__) to embed the line number as a string +// (as in "ask --history=bb."STRINGIFY(__COUNTER__)") +#define STRINGIFY2(x) #x +#define STRINGIFY(x) STRINGIFY2(x) +// Some handy macros for common shell script behaviors: // Bold text: #define B(s) "\033[1m" s "\033[22m" |
