mirror of
https://gitee.com/RubyMetric/chsrc.git
synced 2025-12-25 20:52:49 +00: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…
Reference in New Issue