mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
util: Add the AFS_STRINGIZE() macro
Add a macro to help with easily printing the value of #define'd constants, called AFS_STRINGIZE(). For example: printf("The value of AFS_SYSCALL is: " AFS_STRINGIZE(AFS_SYSCALL) "\n"); Change-Id: I19a3e9d930f1ca2085506957b4e96dff5bf1c22e Reviewed-on: https://gerrit.openafs.org/12893 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Ian Wienand <iwienand@redhat.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
32d0493a7e
commit
f5794e0299
@ -121,6 +121,11 @@ extern int re_exec(const char *p1);
|
|||||||
/* b64_string_t is 8 bytes, in stds.h */
|
/* b64_string_t is 8 bytes, in stds.h */
|
||||||
typedef char lb64_string_t[12];
|
typedef char lb64_string_t[12];
|
||||||
|
|
||||||
|
/* A simple macro to help show the value of #define'd constants. e.g. If 'FOO'
|
||||||
|
* is defined as 5, then AFS_STRINGIZE(FOO) expands to "5" */
|
||||||
|
#define AFS_STRINGIZE_(s) #s
|
||||||
|
#define AFS_STRINGIZE(s) AFS_STRINGIZE_(s)
|
||||||
|
|
||||||
#include <afs/ktime.h>
|
#include <afs/ktime.h>
|
||||||
#include "afsutil_prototypes.h"
|
#include "afsutil_prototypes.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user