Lua

目次

Lua クラス

はじめに

クラス概要

Lua
class Lua {
/* 定数 */
const string Lua::LUA_VERSION = Lua 5.1.4;
/* メソッド */
public mixed assign(string $name, string $value)
public mixed call(callable $lua_func, array $args = ?, int $use_self = 0)
public mixed __call(callable $lua_func, array $args = ?, int $use_self = 0)
public __construct(string $lua_script_file = NULL)
public mixed eval(string $statements)
public string getVersion()
public mixed include(string $file)
public mixed registerCallback(string $name, callable $function)
}

定義済み定数

Lua::LUA_VERSION

LuaClosure クラス

はじめに

LuaClosure は、Lua 関数呼び出しから返されることがありえる LUA_TFUNCTION に対するラッパー・クラスです。

クラス概要

LuaClosure
class LuaClosure {
/* メソッド */
public void __invoke(mixed ...$args)
}