[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: OOLua version 1.2.2 released
- From: Daniel Wallin <daniel@...>
- Date: Tue, 12 Jan 2010 14:50:01 +0100
liam mail wrote:
> Sorry looking again at your posted code
> @@ -244,6 +244,8 @@ namespace luabind { namespace detail
> {
> object_rep* result = static_cast<object_rep*>(lua_
> touserdata(L,
> index));
>
> + return result;
> +
> if (!result || !lua_getmetatable(L, index))
> return 0;
>
[...]
> The code you posted only checks
> that the userdata has a metatable not that it is an actual object_rep from
> what I see.
If you actually looked at the code rather than the diff context you
might have noticed that it *does* check that.
> Just as you have a method to turn this off locally I may introduce a define
> to turn it on if a user so requires, in a future release.
Yes, and that will make the benchmark results different.
--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com