From 43474e4c411709e3c1ab1b1d13283d2bc4789d1d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Wed, 15 Feb 2017 17:52:46 +0100 Subject: lapi tests --- tests/C/lua_pushnil.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/C/lua_pushnil.c (limited to 'tests/C') diff --git a/tests/C/lua_pushnil.c b/tests/C/lua_pushnil.c new file mode 100644 index 0000000..bb31246 --- /dev/null +++ b/tests/C/lua_pushnil.c @@ -0,0 +1,21 @@ +#include +#include +#include +#include +#include + +int main(void) { + + lua_State *L = luaL_newstate(); + + luaL_openlibs(L); + + lua_pushnil(L); + + printf("L->top(%d): %s\n", lua_gettop(L), luaL_typename(L, lua_gettop(L))); + + lua_close(L); + + return 0; + +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf