- If you require fixed-size integers use the portable ones provided by the Boost library, e.g.
- Do not use <stdint.h>, which is part of the C99 standard but is not yet available on many platforms.
- Do not use the __PRETTY_FUNCTION__ macro, which is gcc-specific. In general, we prefer that log output be clearly understandable without reference to specific locations in the code. If you still want to log a message that contains the source filename and line number, use the k3d_file_reference macro, e.g.
k3d::log() << error << k3d_file_reference << ": could not locate foo!" << std::endl;