int LuaPeak::getId(lua_State *L) { Peak* obj = RefBinding<Peak>::check( L, 1); lua_pushnumber(L, obj->getId() ); return 1; }