Debian Codegraph @

debian/missing-sources/gio-unix-sys/tests/constant.c

raw
1 // This file was generated by gir (https://github.com/gtk-rs/gir)
2 // from gir-files (https://github.com/gtk-rs/gir-files)
3 // DO NOT EDIT
4
5 #include "manual.h"
6 #include <stdio.h>
7
8 #define PRINT_CONSTANT(CONSTANT_NAME) \
9 printf("%s;", #CONSTANT_NAME); \
10 printf(_Generic((CONSTANT_NAME), \
11 char *: "%s", \
12 const char *: "%s", \
13 char: "%c", \
14 signed char: "%hhd", \
15 unsigned char: "%hhu", \
16 short int: "%hd", \
17 unsigned short int: "%hu", \
18 int: "%d", \
19 unsigned int: "%u", \
20 long: "%ld", \
21 unsigned long: "%lu", \
22 long long: "%lld", \
23 unsigned long long: "%llu", \
24 float: "%.6f", \
25 double: "%.6f", \
26 long double: "%ld"), \
27 CONSTANT_NAME); \
28 printf("\n");
29
30 int main() {
31 PRINT_CONSTANT(G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME);
32 return 0;
33 }