src/luacef.c
int luacef_len(lua_State *L)
{
	luacef_base *p = luacef_touserdata(L, 1);
	if (p->base.size) 
		lua_pushinteger(L, p->base.size);
	else
		lua_pushinteger(L, 0);
	return 1;
}
// __len, for some struct has base member
len, for some struct has base member
len for some struct has base member
int luacef_len(lua_State *L)
{
	luacef_base *p = luacef_touserdata(L, 1);
	if (p->base.size) 
		lua_pushinteger(L, p->base.size);
	else
		lua_pushinteger(L, 0);
	return 1;
}
int luacef_len ( lua_State * L ) { luacef_base * p = luacef_touserdata ( L , 1 ) ; if ( p -> base . size ) lua_pushinteger ( L , p -> base . size ) ; else lua_pushinteger ( L , 0 ) ; return 1 ; }
__len, for some struct has base member
__len for some struct has base member