diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-21 12:37:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-22 00:05:31 +0200 |
| commit | c7d2f08ba44243ac1db478a0d5239763932a6861 (patch) | |
| tree | fcfec548e63a7a5a476b4100c8d0179842bee6c1 /vis-lua.c | |
| parent | 29f8d2488cfe86678e65e73c58e36d7c48a0e11b (diff) | |
| download | vis-c7d2f08ba44243ac1db478a0d5239763932a6861.tar.gz vis-c7d2f08ba44243ac1db478a0d5239763932a6861.tar.xz | |
vis-lua: add vis.VERSION property
It is a string in `git describe` format, as reporte by `vis -v`.
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1198,6 +1198,9 @@ void vis_lua_init(Vis *vis) { luaL_newmetatable(L, "vis"); luaL_setfuncs(L, vis_lua, 0); + lua_pushstring(L, VERSION); + lua_setfield(L, -2, "VERSION"); + static const struct { enum VisMode id; const char *name; |
