Thread macros and name length check