fix(util/list_lua): typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
6ef161824d
commit
107f139764
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ static int list_ ## T ## _is_nil(lua_State * L) { return push_boolean(L, is_nil(
|
|||
static int list_ ## T ## _car(lua_State * L) { \
|
||||
list<T> & l = to_list_ ## T(L, 1); \
|
||||
if (is_nil(l)) throw exception("arg #1 must be a cons cell"); \
|
||||
return push_list_ ## T(L, car(l)); \
|
||||
return PushVal(L, car(l)); \
|
||||
} \
|
||||
static int list_ ## T ## _cdr(lua_State * L) { \
|
||||
list<T> & l = to_list_ ## T(L, 1); \
|
||||
|
|
Loading…
Reference in a new issue