Skip to content

Commit ecf08c7

Browse files
committed
add some convenient info
$ lua -e 'print(require[[mosquitto]]._VERSION)' 0.4.1
1 parent 831d527 commit ecf08c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua-mosquitto.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,11 @@ static inline void mosq_register_defs(lua_State *L, const struct define *D)
12551255
lua_setfield(L, -2, D->name);
12561256
D++;
12571257
}
1258+
1259+
lua_pushliteral (L, "Lua bindings to libmosquitto");
1260+
lua_setfield (L, -2, "_DESCRIPTION");
1261+
lua_pushliteral (L, "0.4.1");
1262+
lua_setfield (L, -2, "_VERSION");
12581263
}
12591264

12601265
static const struct luaL_Reg R[] = {

0 commit comments

Comments
 (0)