<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasaplus1</author_name>
  <author_url>https://blog.hatena.ne.jp/sasaplus1/</author_url>
  <blog_title>四角革命前夜</blog_title>
  <blog_url>https://sasaplus1.hatenadiary.com/</blog_url>
  <categories>
    <anon>Lua</anon>
    <anon>C言語</anon>
  </categories>
  <description>既存のプログラムにLuaを組み込む場合のシナリオなど。これで最後かー。 C言語が主体の場合 基本的にC言語が主体で、ところどころLuaを使いたい場合はLuaで処理が終わったらすぐに戻ってくるように作るといいっぽい。 設定ファイルそのものをLuaスクリプトにした場合、値を読んだらすぐC言語に渡して終わるとかとか。 Luaが主体の場合 基本的にLuaが主体の場合、C言語を使わなければいけないところ――低レイヤなところとか――以外は全部Luaで作ってしまえばメモリ管理とか煩わしいこともなくなる。 Lua側の便利な関数もいろいろ使えるわけで、C言語を主体にしなければならない理由がないならこっちの方がい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasaplus1.hatenadiary.com%2Fentry%2F20101130%2F1291126831&quot; title=&quot;入門Luaプログラミング第12章 Luaの組み込み - 四角革命前夜&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-11-30 23:20:31</published>
  <title>入門Luaプログラミング第12章 Luaの組み込み</title>
  <type>rich</type>
  <url>https://sasaplus1.hatenadiary.com/entry/20101130/1291126831</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
