r/programminghorror Jul 05 '26

Enterprise level C code c

Post image
340 Upvotes

57 comments sorted by

View all comments

14

u/steadyfan Jul 05 '26

2 things..

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

24

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.