[tarantool-patches] Re: [PATCH v9 4/7] lua: remove exceptions from function luaL_tofield()

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Mar 29 22:26:17 MSK 2019



On 22/03/2019 18:53, Konstantin Osipov wrote:
> * imeevma at tarantool.org <imeevma at tarantool.org> [19/03/22 13:57]:
>>  	case LUA_TCDATA:
>>  	{
>> -		uint32_t ctypeid = 0;
>> -		void *cdata = luaL_checkcdata(L, index, &ctypeid);
>> +		GCcdata *cd = cdataV(L->base + index - 1);
>> +		void *cdata = (void *)cdataptr(cd);
>> +
> 
> What is the reason for this change?

Because luaL_checkcdata throws. So here it is partially inlined.

> 
> 
> -- 
> Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
> http://tarantool.io - www.twitter.com/kostja_osipov
> 




More information about the Tarantool-patches mailing list