mirror of
https://github.com/walterschell/Lua.git
synced 2024-12-27 03:00:56 +08:00
10 lines
191 B
C
10 lines
191 B
C
|
#include <lua.h>
|
||
|
#include <lauxlib.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
lua_State *l = luaL_newstate();
|
||
|
double lversion = lua_version(l);
|
||
|
printf("Lua version is %f\n", lversion);
|
||
|
}
|