logoalt Hacker News

delta_p_delta_x10/11/20241 replyview on HN

> you can use this trick to create code where some user-specified word appears as a string and as the name of the function

Ah, the poor man's introspection and reflection with C macros.

shudder


Replies

wruza10/12/2024

Print an expression code to stdout using rich man’s introspection and reflection.