The "self-terminating nested for loop" trick used to implement the guard syntax is really interesting. The guard is implemented as: #define __scoped_user_access(mode, uptr, size, elbl) \ for (bool ...