mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-15 12:15:43 +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);
|
||
|
}
|