monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Concerns about the net.venge.monotone.stripped bran


From: Zack Weinberg
Subject: Re: [Monotone-devel] Concerns about the net.venge.monotone.stripped branch
Date: Mon, 13 Oct 2008 21:46:14 -0700

On Mon, Oct 13, 2008 at 7:45 PM, Jack Lloyd <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]