Wikipedia has article on logic levels that includes common naming conventions (https://en.wikipedia.org/wiki/Logic_level). The ones that could be used in program code are (for an active-low pin Q):
a lower-case n prefix or suffix (nQ, Qn or Q_n)
an upper-case N suffix (Q_N)
an _B or _L suffix (Q_B or Q_L)