K
Kiuhnm
How would you implement a static dictionary with macros?
For example, the five lines
PL_FIND(MYDICT, HOUSE)
PL_FIND(MYDICT, AUTO)
PL_FIND(MYDICT, THIS_IS_NOT_IN_THE_DICTIONARY)
PL_FIND(MYDICT, jhgjhguytuyhkgjhg)
PL_FIND(MYDICT, 3498fjkhdlkh34098jhf)
should produce:
house_definition
auto_definition
symbol_not_found
symbol_not_found
symbol_not_found
Kiuhnm
For example, the five lines
PL_FIND(MYDICT, HOUSE)
PL_FIND(MYDICT, AUTO)
PL_FIND(MYDICT, THIS_IS_NOT_IN_THE_DICTIONARY)
PL_FIND(MYDICT, jhgjhguytuyhkgjhg)
PL_FIND(MYDICT, 3498fjkhdlkh34098jhf)
should produce:
house_definition
auto_definition
symbol_not_found
symbol_not_found
symbol_not_found
Kiuhnm