mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Rename xy_arylen()
to xy_c_array_len()
This commit is contained in:
5
lib/xy.h
5
lib/xy.h
@@ -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 *
|
||||
|
Reference in New Issue
Block a user