diff options
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 | } |