<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ikaro1192</author_name>
  <author_url>https://blog.hatena.ne.jp/ikaro1192/</author_url>
  <blog_title>まどろみの思考空間</blog_title>
  <blog_url>https://hogespace.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>メモ</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>luaのみを使っている場合標準ライブラリは特にimportやらincludeやらをしなくていいのであんまり意識しない。んでC++から呼び出したときも同じ感じで特に何も指定せずでできるのかなと思ったらエラーを吐いた。 luaL_openlibs(L); という一行を入れなくてはいけないらしい。追記： 以下のようなテンプレートクラスを書いておくとLuaが簡単に扱えて便利。(luabindを利用している)Policyは内部クラスで適当に定義したのを指定すると特に命名とか気にせずに使える。 #include &lt;lua.hpp&gt; #include &lt;luabind/luabind.hpp&gt; #inclu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogespace.hatenablog.jp%2Fentry%2F2012%2F02%2F28%2F220253&quot; title=&quot;Luaの標準ライブラリをCやC++から呼び出すときの注意(メモ) - まどろみの思考空間&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>2012-02-28 22:02:53</published>
  <title>Luaの標準ライブラリをCやC++から呼び出すときの注意(メモ)</title>
  <type>rich</type>
  <url>https://hogespace.hatenablog.jp/entry/2012/02/28/220253</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
