Rename xy_arylen() to xy_c_array_len()

This commit is contained in:
Aoran Zeng 2025-08-20 12:30:27 +08:00
parent 9023f8d0e7
commit c33a9dafd0
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -166,7 +166,10 @@ void br () { puts (""); }
void p (const char *s) { printf ("%s\n", s); }
#define xy_arylen(x) (sizeof (x) / sizeof (x[0]))
#define xy_c_array_len(arr) (sizeof (arr) / sizeof (arr[0]))
/* @deprecated 应迁移到后者 */
#define xy_arylen xy_c_array_len
static inline void *