<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>スクリプト</anon>
    <anon>C++</anon>
  </categories>
  <description>function main(){ print(&quot;Hello Squrrel World\n&quot;); } 上ののようなスクリプトが定義されていた場合に、 script&quot;main&quot;(); こんな感じでC++側からスクリプト側の関数の呼び出しを行いたい。 で、実装するとこんな感じ？ // 関数の戻り値の型を定義 template struct type2type{ typedef T type; }; type2type void_; type2type int_; type2type char_; struct script{ template result operator ()(type2typ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20090909%2F1252447359&quot; title=&quot;スクリプト側の関数の呼び出し方 - 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>2009-09-09 07:02:39</published>
  <title>スクリプト側の関数の呼び出し方</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20090909/1252447359</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
