use the copyright statement provided by the Lua distribution in lua.h

This commit is contained in:
nhmall
2019-11-30 18:43:57 -05:00
parent 719ca3003e
commit 2a2021d5e4
5 changed files with 14 additions and 3 deletions

View File

@@ -923,6 +923,10 @@ get_lua_version()
Strcpy(g.lua_ver, vs);
}
lua_close(L);
#ifdef LUA_COPYRIGHT
if (sizeof LUA_COPYRIGHT < sizeof g.lua_copyright - 1)
Strcpy(g.lua_copyright, LUA_COPYRIGHT);
#endif
}
return (const char *) g.lua_ver;
}