On Mon, Oct 13, 2008 at 7:45 PM, Jack Lloyd <[EMAIL PROTECTED]> wrote:
> I could not figure out how to get the runtime Lua version (aside from
> executing a line of Lua that ruturns the value of the Lua _VERSION
> variable)

well, you could always do the moral equivalent in C:

  lua_getglobal(L, "_VERSION");
  std::string luaversion(lua_tostring(L, -1)); // copies
  lua_pop(L, 1);

zw


_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to