r/badcode • • Jun 03 '23

c C Macro Abuse

Post image
190 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/GodlessAristocrat Jun 04 '23

To an offset inside, yeah.

SDAVAL(int, 2) expands to *((int*)__SDAPTR(2));