Dmitry Telenkov 15 小时之前
父节点
当前提交
c63eafcfe9
共有 3 个文件被更改,包括 22 次插入0 次删除
  1. 10 0
      lua/hello.lua
  2. 12 0
      lua/main.c
  3. 二进制
      lua/main.exe

+ 10 - 0
lua/hello.lua

@@ -0,0 +1,10 @@
+-- my first app: hello.lua
+
+print "hello world";
+print("goodby world")
+
+function add(a, b)
+    return a + b
+end
+
+print(add(3,5))

+ 12 - 0
lua/main.c

@@ -0,0 +1,12 @@
+#include <unistd.h>
+#include <lua5.4/lua.h>
+
+
+int main(int argc, char **argv)
+{
+    int status;
+    //lua_State *L = lua_newstate();
+    //luaL_openlibs(L);
+
+    return 0;
+}

二进制
lua/main.exe