{"categories":["Lua"],"provider_url":"https://hatena.blog","published":"2008-07-03 07:42:48","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/tetsuya32/","image_url":null,"blog_url":"https://tetsuya32.hatenadiary.org/","url":"https://tetsuya32.hatenadiary.org/entry/20080703/1215124968","type":"rich","description":"C\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089Lua\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002 luaL_loadfile()\u3092\u4f7f\u3063\u3066Lua\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001lua_pcall\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002 // lua_load_script.c // Lua\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u5b9f\u884c\u3059\u308b #include <stdio.h> #include \"lua.h\" #include \"lualib.h\" #include \"lauxlib.h\" int main(int argc, char *argv[]) { lua_State *L; // \u958b\u59cb\u51e6\u7406 L = lua_open(); luaL_openlibs(L\u2026","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftetsuya32.hatenadiary.org%2Fentry%2F20080703%2F1215124968\" title=\"C\u304b\u3089Lua: Lua\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c - good enough?\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"C\u304b\u3089Lua: Lua\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c","author_name":"tetsuya32","width":"100%","version":"1.0","blog_title":"good enough?"}