Dmitry Telenkov 15 시간 전
부모
커밋
c63eafcfe9
3개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      lua/hello.lua
  2. 12 0
      lua/main.c
  3. BIN
      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;
+}

BIN
lua/main.exe