summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2011-03-29 15:24:21 -0700
committerSam Roberts <vieuxtech@gmail.com>2011-03-29 15:24:21 -0700
commitc5158ac3433fcbb9f6aed2c9f4f7e79a3306d27c (patch)
tree2475c4eb75d1d6db113a84cab7b23fc7bbd7e9fb /lua
parentc8de01595f1174ee9adcfaba5403e79e965614c5 (diff)
downloadlibnet-c5158ac3433fcbb9f6aed2c9f4f7e79a3306d27c.tar.gz
API todo, maybe set with nil can clear an attr.
Diffstat (limited to 'lua')
-rw-r--r--lua/nfct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nfct.c b/lua/nfct.c
index 1ded1e8..6b4d9af 100644
--- a/lua/nfct.c
+++ b/lua/nfct.c
@@ -939,7 +939,8 @@ static int get_attr_u8(lua_State* L)
* performance is an issue, so why not return nil and emsg when attr isn't
* present.
*/
-/* TODO set: can I use lua 'true' to mean full-width? Useful for masks. */
+/* TODO set: can I use true to mean full-width? Useful for masks. */
+/* TODO set: can I use nil to mean nfct_attr_unset()? */
#define ATTR_UX(ux) \
static int get_attr_##ux(lua_State* L) \
{ lua_pushinteger(L, nfct_get_attr_##ux(check_ct(L), check_attr(L))); return 1; } \