{"url":"https://halo-w2.hatenadiary.org/entry/20050426/p1","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhalo-w2.hatenadiary.org%2Fentry%2F20050426%2Fp1\" title=\" \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\uff0f\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u4e2d\u3067\u306e\u4eee\u60f3\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057 - \u304d\u306e\u3053\u308b\u5148\u751f -\u30c1\u30e9\u30b7\u306e\u88cf\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://halo-w2.hatenadiary.org/","published":"2005-04-26 00:00:00","version":"1.0","title":" \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\uff0f\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u4e2d\u3067\u306e\u4eee\u60f3\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057","provider_url":"https://hatena.blog","categories":["Programming","C/C++"],"image_url":null,"width":"100%","height":"190","provider_name":"Hatena Blog","author_name":"halo_w2","blog_title":"\u304d\u306e\u3053\u308b\u5148\u751f -\u30c1\u30e9\u30b7\u306e\u88cf","author_url":"https://blog.hatena.ne.jp/halo_w2/","description":"\u672c\u65e5\u306e\uff3f|\uffe3|\u25cb\u306a\u5931\u6557\u3002 Lua\u306e\u30e9\u30c3\u30d1\u30af\u30e9\u30b9\u3092\u4f5c\u308d\u3046\u3068\u601d\u3044\u3001LuaState\u3068\u305d\u3053\u304b\u3089\u6d3e\u751f\u3057\u305fLuaThread\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u305f\u3002LuaState\u3067\u306f\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u4e2d\u3067\u5f8c\u7247\u4ed8\u3051\u95a2\u6570close()\u3092\u547c\u3073\u51fa\u3059\u3002Lua\u306ethread\u306b\u5bfe\u3057\u3066lua_close\u3092\u547c\u3076\u3068\u843d\u3061\u308b\u306e\u3067LuaThread\u3067\u306f\u3053\u306eclose()\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3001\u4f55\u3082\u3057\u306a\u3044\u95a2\u6570\u306b\u3055\u305b\u305f\u3044\u3002 // Lua\u306eVM\u3092\u6271\u3046 class LuaState { ... ~LuaState() { close(); } virtual void close() { lua_close(L); } }; // Lua\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u6271\u3046\u3002Lu\u2026"}