mirror of
https://github.com/walterschell/Lua.git
synced 2024-12-26 10:31:40 +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);
|
|
} |