fork download
  1. #define htable_gen(name, type) \
  2. struct name { \
  3. type **arr; \
  4. unsigned siz; \
  5. unsigned used; \
  6. }; \
  7. void ht_##name_init(struct name *ht, unsigned siz) { \
  8. ht->siz = 1U << siz; \
  9. ht->arr = s_calloc(ht->siz, sizeof(type *)); \
  10. ht->used = 0; \
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:32: warning: backslash-newline at end of file
 #define htable_gen(name, type) \
                                ^
/usr/lib/gcc/i586-linux-gnu/5/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty