
To prevent bugs caused by pointers having the wrong type (e.g. uint32_t instead of uint8_t), some macros are changed into inline functions so that the normal type-checking is performed. The macros MYSQL_GET_ERRCODE, MYSQL_GET_STMTOK_NPARAM, MYSQL_GET_STMTOK_NATTR, and MYSQL_GET_NATTR were not changed, because they may be too specific to be present in a general purpose header in the first place.