summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-08 19:30:22 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-08 19:30:22 -0800
commit6a6eafdcee2f454eb6680b5919b9365bb2e827f0 (patch)
tree93bf6c07ef29df9f36e7e95aa87539efe77e7f47 /nasm.h
parentc84f1b927b0f0b1c9f0489cd4aa2667383f3e56f (diff)
downloadnasm-6a6eafdcee2f454eb6680b5919b9365bb2e827f0.tar.gz
nasm-6a6eafdcee2f454eb6680b5919b9365bb2e827f0.tar.bz2
nasm-6a6eafdcee2f454eb6680b5919b9365bb2e827f0.zip
Move elements() to nasmlib.h
Move elements() to nasmlib.h; that is the best place for this kind of utility macros.
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/nasm.h b/nasm.h
index 2c96a4c..9cfd77e 100644
--- a/nasm.h
+++ b/nasm.h
@@ -963,19 +963,6 @@ enum special_tokens {
/*
* -----
- * Other
- * -----
- */
-
-/*
- * This is a useful #define which I keep meaning to use more often:
- * the number of elements of a statically defined array.
- */
-
-#define elements(x) ( sizeof(x) / sizeof(*(x)) )
-
-/*
- * -----
* Global modes
* -----
*/