Support for const methods (C and C++).