git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
eb3227d
)
Job done: cut off ARRAYLEN macro
309/head
author
svost
<ya.nowa@yandex.ru>
Sun, 10 Apr 2016 20:04:05 +0000 (23:04 +0300)
committer
svost
<ya.nowa@yandex.ru>
Sun, 10 Apr 2016 20:04:05 +0000 (23:04 +0300)
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
f22f8a9
..
b24771a
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-48,7
+48,6
@@
static const int64_t CENT = 10000;
#define END(a) ((char*)&((&(a))[1]))
#define UBEGIN(a) ((unsigned char*)&(a))
#define UEND(a) ((unsigned char*)&((&(a))[1]))
-#define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0]))
#define UVOIDBEGIN(a) ((void*)&(a))
#define CVOIDBEGIN(a) ((const void*)&(a))