mercredi 1 décembre 2021

Is it possible to determine lvalue at compile / run time?

Out of curiosity: is it possible to determine lvalue at compile / run time?

Example:

int x1 = 1;
#define x2 2

bool b1 = IS_LVALUE(x1)?   // true
bool b2 = IS_LVALUE(x2)?   // false

Something like this, but for C.





Aucun commentaire:

Enregistrer un commentaire