Files

4 lines
158 B
Plaintext

// Please tell me if there already is a macro for that
#define LISTFIRST(L) (length(L) ? L[1] : null)
#define LISTLAST(L) (length(L) ? L[length(L)] : null)