Skip to content

Commit

Permalink
feature: added redis.parser._VERSION.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed May 13, 2012
1 parent 0dfb281 commit cd878e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions redis-parser.c
Expand Up @@ -8,6 +8,9 @@
#include <string.h>


#define LUA_REDIS_PARSER_VERSION "0.09"


enum {
BAD_REPLY = 0,
STATUS_REPLY = 1,
Expand Down Expand Up @@ -71,6 +74,9 @@ luaopen_redis_parser(lua_State *L)
{
luaL_register(L, "redis.parser", redis_parser);

lua_pushliteral(L, LUA_REDIS_PARSER_VERSION);
lua_setfield(L, -2, "_VERSION");

lua_pushlightuserdata(L, redis_null);
lua_setfield(L, -2, "null");

Expand Down

0 comments on commit cd878e8

Please sign in to comment.