2013-07-21から1日間の記事一覧

C言語とLuaの連携 -配列のやりとり-

やりたいこと C言語とLua間で配列のやり取りをしたい。 具体的にはCからLuaに配列を渡し、Luaで配列を加工してC言語に返したい。 C言語のコード array.c #include <stdio.h> #include <stdlib.h> #include "include/lua.h" #include "include/lualib.h" #include "include/lauxl</stdlib.h></stdio.h>…