AngelCode Scripting Library

うーむ。ざっと見た限りではかなり僕の理想に近いスクリプトなんだが、日本語の情報が全然ない……。英語ワカリマセーン。
float hoge = 1.23;
がエラーも返さずにコケるのは仕様なのか? fつけると通るけど。

#include 
#include 
#include "angelscript.h"

static const std::string script = "float hoge = 1.23f;";

int main(void)
{
	asIScriptEngine * engine = asCreateScriptEngine(ANGELSCRIPT_VERSION);
	engine->AddScriptSection("module", "section", script.c_str(), script.length());
	engine->Build("module");
	{
		float * hoge = 0;
		int gvarID = engine->GetGlobalVarIDByDecl("module", "float hoge");
		engine->GetGlobalVarPointer(gvarID, (void **)&hoge);
		std::cout << "hoge = " << *hoge << std::endl;
	}
	engine->Release();
	return 0;
}