From f89fb30058a7d2d6a896ace242fc612bfe4e2c34 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sun, 1 May 2011 19:51:55 +0930 Subject: Add build and package support - Add Makefile and RPM spec file - Add cjson.version variable --- lua_cjson.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua_cjson.c') diff --git a/lua_cjson.c b/lua_cjson.c index aaf476d..2cef3a8 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -1004,6 +1004,10 @@ int luaopen_cjson(lua_State *l) lua_pushlightuserdata(l, NULL); lua_setfield(l, -2, "null"); + /* Set cjson.version */ + lua_pushliteral(l, VERSION); + lua_setfield(l, -2, "version"); + /* Return cjson table */ return 1; } -- cgit v1.2.3-55-g6feb