public static void Push(IntPtr L, Ray ray) { LuaStatic.GetPackRay(L); ToLua.Push(L, ray.get_direction()); ToLua.Push(L, ray.get_origin()); if (LuaDLL.lua_pcall(L, 2, 1, 0) != 0) { string msg = LuaDLL.lua_tostring(L, -1); throw new LuaException(msg, null, 1); } }
public static void Push(IntPtr L, Ray ray) { LuaStatic.GetPackRay(L); Push(L, ray.direction); Push(L, ray.origin); if (LuaDLL.lua_pcall(L, 2, 1, 0) != 0) { string error = LuaDLL.lua_tostring(L, -1); throw new LuaException(error); } }