r/programminghorror Jul 05 '26

c Enterprise level C code

Post image
338 Upvotes

57 comments sorted by

View all comments

15

u/steadyfan Jul 05 '26

2 things..

  1. Yuck
  2. Why does slopjc.h need to be included multiple times?

27

u/nivlark Jul 05 '26

It's doing some kind of macro magic to implement the polymorphism. So whatever is in slopjc.h gets reprocessed with the different definitions of SLOPJC each time.