mirror of
https://github.com/RubyMetric/chsrc
synced 2025-09-09 02:26:43 +08:00
Rename xy_arylen()
to xy_c_array_len()
This commit is contained in:
parent
9023f8d0e7
commit
c33a9dafd0
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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user