LoginSignup
2
2

More than 5 years have passed since last update.

既定のマクロとか

Posted at

なんだろうね。すぐ忘れる。

$ cpp -dM /dev/null
#define __DBL_MIN_EXP__ (-1021)
#define __UINT_LEAST16_MAX__ 65535
#define __ATOMIC_ACQUIRE 2
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __UINT_LEAST8_TYPE__ unsigned char
#define __INTMAX_C(c) c ## L
#define __CHAR_BIT__ 8
#define __UINT8_MAX__ 255

こういうこともできるかな。

$ echo "#include <limits.h>" | cpp -dM | grep PATH_MAX
#define PATH_MAX 4096
#define _POSIX_PATH_MAX 256
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2