diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-05-01 19:51:55 +0930 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-05-01 19:51:55 +0930 |
commit | f89fb30058a7d2d6a896ace242fc612bfe4e2c34 (patch) | |
tree | 1a31682894a1057671d2f5d52a420d2a26f3413c /lua_cjson.c | |
parent | 6fb4dd5283870100dd2e877327c923953d8639eb (diff) | |
download | lua-cjson-f89fb30058a7d2d6a896ace242fc612bfe4e2c34.tar.gz lua-cjson-f89fb30058a7d2d6a896ace242fc612bfe4e2c34.tar.bz2 lua-cjson-f89fb30058a7d2d6a896ace242fc612bfe4e2c34.zip |
Add build and package support
- Add Makefile and RPM spec file
- Add cjson.version variable
Diffstat (limited to 'lua_cjson.c')
-rw-r--r-- | lua_cjson.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
1004 | lua_pushlightuserdata(l, NULL); | 1004 | lua_pushlightuserdata(l, NULL); |
1005 | lua_setfield(l, -2, "null"); | 1005 | lua_setfield(l, -2, "null"); |
1006 | 1006 | ||
1007 | /* Set cjson.version */ | ||
1008 | lua_pushliteral(l, VERSION); | ||
1009 | lua_setfield(l, -2, "version"); | ||
1010 | |||
1007 | /* Return cjson table */ | 1011 | /* Return cjson table */ |
1008 | return 1; | 1012 | return 1; |
1009 | } | 1013 | } |