Gnash  0.8.10
Classes | Namespaces | Defines | Functions
log.h File Reference
#include "rc.h"
#include "dsodefs.h"
#include <fstream>
#include <boost/thread/mutex.hpp>
#include <boost/format.hpp>
#include "gettext.h"
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/preprocessor/seq/for_each.hpp>

Go to the source code of this file.

Classes

class  gnash::LogFile
class  gnash::HostFunctionReport

Namespaces

namespace  gnash
 

Anonymous namespace for callbacks, local functions, event handlers etc.


Defines

#define DEFAULT_LOGFILE   "gnash-dbg.log"
#define _(String)   gettext (String)
#define N_(String)   gettext_noop (String)
#define LOG_ONCE(x)
#define __FUNCDNAME__   __FUNCTION__
#define TOKENIZE_FORMAT(z, n, t)   % t##n
#define TOKENIZE_ARGS(z, n, t)   BOOST_PP_COMMA_IF(n) const T##n& t##n
#define LOG_TYPES
#define LOG_TEMPLATES(z, n, data)
#define ARG_NUMBER   10
 Defines the maximum number of template arguments.
#define GENERATE_LOG_TYPES(r, _, t)   BOOST_PP_REPEAT(ARG_NUMBER, LOG_TEMPLATES, t)
#define VERBOSE_PARSE   1
#define VERBOSE_ACTION   1
#define VERBOSE_ASCODING_ERRORS   1
#define VERBOSE_MALFORMED_SWF   1
#define VERBOSE_NETWORKING   1
#define IF_VERBOSE_PARSE(x)   do { if ( LogFile::getDefaultInstance().getParserDump() ) { x; } } while (0);
#define IF_VERBOSE_ACTION(x)   do { if ( LogFile::getDefaultInstance().getActionDump() ) { x; } } while (0);
#define IF_VERBOSE_NETWORK(x)   do { if ( LogFile::getDefaultInstance().getNetwork() ) { x; } } while (0);
#define IF_VERBOSE_ASCODING_ERRORS(x)   { if ( gnash::RcInitFile::getDefaultInstance().showASCodingErrors() ) { x; } }
#define IF_VERBOSE_MALFORMED_SWF(x)   { if ( gnash::RcInitFile::getDefaultInstance().showMalformedSWFErrors() ) { x; } }
#define dummystr(x)   # x
#define dummyestr(x)   dummystr(x)
#define __FUNCTION__   __FILE__":"dummyestr(__LINE__)
#define __PRETTY_FUNCTION__   __FUNCTION__
#define GNASH_REPORT_FUNCTION   gnash::log_debug("entering")
#define GNASH_REPORT_RETURN   gnash::log_debug("returning")

Functions

void gnash::processLog_network (const boost::format &fmt)
void gnash::processLog_error (const boost::format &fmt)
void gnash::processLog_unimpl (const boost::format &fmt)
void gnash::processLog_trace (const boost::format &fmt)
void gnash::processLog_debug (const boost::format &fmt)
void gnash::processLog_action (const boost::format &fmt)
void gnash::processLog_parse (const boost::format &fmt)
void gnash::processLog_security (const boost::format &fmt)
void gnash::processLog_swferror (const boost::format &fmt)
void gnash::processLog_aserror (const boost::format &fmt)
void gnash::processLog_abc (const boost::format &fmt)

Define Documentation

#define _ (   String)    gettext (String)

Referenced by gnash::abc::Trait::finalize(), gnash::abc::Trait::finalize_mbody(), gnash::abc::Trait::read(), gnash::action_buffer::read(), gnash::action_buffer::readConstantPool(), gnash::action_buffer::operator[](), gnash::action_buffer::read_string(), gnash::action_buffer::read_int16(), gnash::action_buffer::read_int32(), gnash::ActionExec::operator()(), gnash::ActionExec::skip_actions(), gnash::ActionExec::adjustNextPC(), gnash::amf::readString(), gnash::amf::writePlainString(), gnash::amf::Writer::writeObject(), gnash::amf::Reader::operator()(), gnash::AOS4Gui::run(), gnash::AOS4Gui::init(), gnash::AOS4AggGlue::createRenderHandler(), gnash::AOS4AggGlue::prepDrawingArea(), gnash::AOS4CairoGlue::createRenderHandler(), gnash::AOS4CairoGlue::prepDrawingArea(), gnash::findObject(), gnash::setVariable(), gnash::as_object::get_member(), gnash::as_object::set_member(), gnash::as_object::init_member(), gnash::as_object::prototypeOf(), gnash::as_value::writeAMF0(), gnash::SWF::SWFHandlers::execute(), gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg(), gnash::media::ffmpeg::AudioDecoderFfmpeg::decode(), gnash::media::gst::AudioDecoderGst::AudioDecoderGst(), gnash::media::gst::AudioDecoderGst::decode(), gnash::media::AudioDecoderSimple::AudioDecoderSimple(), gnash::media::AudioDecoderSimple::decode(), gnash::media::AudioDecoderSpeex::AudioDecoderSpeex(), gnash::media::AudioDecoderSpeex::decode(), gnash::media::gst::audio_bus_call(), gnash::Button::mouseEvent(), gnash::Button::construct(), gnash::CallFrame::setLocalRegister(), gnash::clocktime::getTimeZoneOffset(), gnash::SWF::CSMTextSettingsTag::loader(), gnash::NetworkAdapter::makeStream(), gnash::SWF::jpeg_tables_loader(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::SWF::DefineButtonTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::SWF::ButtonAction::ButtonAction(), gnash::SWF::ButtonRecord::read(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineFontNameTag::loader(), gnash::SWF::DefineFontTag::readCodeTable(), gnash::SWF::DefineFontInfoTag::loader(), gnash::SWF::DefineShapeTag::loader(), gnash::SWF::DefineTextTag::loader(), gnash::SWF::DefineText2Tag::loader(), gnash::renderer::directfb::DirectFBDevice::DirectFBDevice(), gnash::renderer::directfb::DirectFBDevice::initDevice(), gnash::renderer::directfb::DirectFBDevice::printFBScreen(), gnash::renderer::directfb::DirectFBDevice::printDirectFB(), gnash::DisplayList::moveDisplayObject(), gnash::DisplayList::swapDepths(), gnash::DisplayList::mergeDisplayList(), gnash::DisplayObject::getLoadedMovie(), gnash::DisplayObject::blendMode(), gnash::setHeight(), gnash::setIndexedProperty(), gnash::SWF::DoABCTag::loader(), gnash::SWF::DoActionTag::loader(), gnash::SWF::DoInitActionTag::loader(), gnash::DumpGui::init(), main(), dump_shm(), dump_ctrl(), gnash::renderer::EGLDevice::EGLDevice(), gnash::renderer::x11::X11Device::initDevice(), gnash::renderer::EGLDevice::bindClient(), gnash::renderer::EGLDevice::attachWindow(), gnash::renderer::EGLDevice::queryEGLConfig(), gnash::renderer::EGLDevice::createPbuffer(), gnash::renderer::EGLDevice::createPixmap(), gnash::EventDevice::init(), gnash::EventDevice::check(), gnash::EventDevice::scanForDevices(), gnash::Extension::scanAndLoad(), gnash::Extension::initModule(), gnash::Extension::initModuleWithFunc(), gnash::Extension::scanDir(), gnash::gui::FBGui::init(), gnash::gui::FBGui::run(), gnash::gui::FBGui::showMenu(), gnash::gui::FBGui::showMouse(), gnash::gui::FBAggGlue::setInvalidatedRegion(), gnash::gui::FBAggGlue::setInvalidatedRegions(), gnash::gui::FBAggGlue::init(), gnash::gui::FBAggGlue::createRenderHandler(), gnash::gui::FBAggGlue::render(), gnash::gui::FBgles1Glue::init(), gnash::gui::FBOvgGlue::createRenderHandler(), gnash::gui::FBOvgGlue::setInvalidatedRegions(), gnash::filereferencelist_ctor(), gnash::filter_factory::read(), gnash::DropShadowFilter::read(), gnash::BlurFilter::read(), gnash::GlowFilter::read(), gnash::BevelFilter::read(), gnash::GradientGlowFilter::read(), gnash::ConvolutionFilter::read(), gnash::ColorMatrixFilter::read(), gnash::GradientBevelFilter::read(), gnash::FltkAggGlue::createRenderHandler(), gnash::Font::addFontNameInfo(), gnash::Font::setCodeTable(), gnash::Font::codeTableLookup(), gnash::Font::unitsPerEM(), gnash::Font::ftProvider(), gnash::FreetypeGlyphsProvider::createFace(), gnash::FreetypeGlyphsProvider::~FreetypeGlyphsProvider(), gnash::GcResource::setReachable(), gnash::GcResource::markReachableResources(), gnash::GC::addCollectable(), gnash::GC::fuzzyCollect(), gnash::geometry::pointTest(), gnash::image::Output::writeImageData(), gnash::image::Input::readImageData(), gnash::image::Output::writeImageRGBA(), gnash::image::JpegInput::readHeader(), gnash::image::JpegInput::read(), gnash::image::JpegInput::finishImage(), gnash::GnashVaapiImage::GnashVaapiImage(), gnash::GnashVaapiImage::~GnashVaapiImage(), gnash::GnashVaapiImage::update(), gnash::GnashVaapiImage::begin(), gnash::media::gst::GstUtil::get_audiosink_element(), gnash::media::gst::GstUtil::check_missing_plugins(), gnash::GtkGui::init(), gnash::GtkGui::createMenu(), gnash::GtkGui::showPropertiesDialog(), gnash::GtkGui::showAboutDialog(), gnash::GtkGui::createFileMenu(), gnash::GtkGui::createEditMenu(), gnash::GtkGui::createHelpMenu(), gnash::GtkGui::createViewMenu(), gnash::GtkGui::createQualityMenu(), gnash::GtkGui::createControlMenu(), gnash::GtkAggGlue::createRenderHandler(), gnash::GtkAggVaapiGlue::init(), gnash::GtkAggVaapiGlue::createRenderHandler(), gnash::GtkAggVaapiGlue::beforeRendering(), gnash::GtkAggVaapiGlue::render(), gnash::GtkCairoGlue::configure(), gnash::GtkGlExtGlue::init(), gnash::gui::GtkOvgGlue::init(), gnash::gui::GtkOvgGlue::createRenderHandler(), gnash::gui::GtkOvgGlue::render(), gnash::Gui::setClipboard(), gnash::Gui::setFullscreen(), gnash::Gui::resizeWindow(), gnash::Gui::unsetFullscreen(), gnash::Gui::hideMenu(), gnash::Gui::showMouse(), gnash::Gui::showMenu(), gnash::Gui::updateStageMatrix(), gnash::Gui::start(), gnash::Gui::yesno(), gnash::Gui::setQuality(), gnash::Gui::getQuality(), gnash::HaikuGui::init(), gnash::HaikuAggGlue::createRenderHandler(), gnash::HaikuAggGlue::prepDrawingArea(), gnash::InputDevice::readData(), gnash::InputDevice::scanForDevices(), gnash::qwidget::qwidget(), gnash::KdeAggGlue::createRenderHandler(), gnash::key_is_accessible(), gnash::key_is_down(), gnash::key_is_toggled(), gnash::LineStyle::set_lerp(), gnash::abc::Machine::execute(), gnash::media::MediaHandler::isFLV(), gnash::media::MediaHandler::createMediaParser(), gnash::media::MediaHandler::createFlashAudioDecoder(), gnash::media::ffmpeg::MediaHandlerFfmpeg::createAudioDecoder(), gnash::media::gst::MediaHandlerGst::createVideoDecoder(), gnash::media::gst::MediaHandlerGst::createAudioDecoder(), gnash::media::haiku::MediaHandlerHaiku::createAudioDecoder(), gnash::media::MediaParser::getId3Info(), gnash::media::ffmpeg::MediaParserFfmpeg::seek(), gnash::media::gst::MediaParserGst::MediaParserGst(), gnash::MouseDevice::scanForDevices(), gnash::MouseDevice::init(), gnash::MouseDevice::check(), gnash::MouseDevice::command(), gnash::movie_definition::importResources(), gnash::movie_root::queryInterface(), gnash::movie_root::swapLevels(), gnash::movie_root::dropLevel(), gnash::movie_root::replaceLevel(), gnash::movie_root::keyEvent(), gnash::movie_root::advance(), gnash::movie_root::processInvoke(), gnash::movie_root::addExternalCallback(), gnash::movie_root::callExternalJavascript(), gnash::movie_root::callExternalCallback(), gnash::movie_root::getURL(), gnash::movie_root::LoadCallback::processLoad(), gnash::movie_root::callInterface(), gnash::MovieClip::call_frame_actions(), gnash::MovieClip::duplicateMovieClip(), gnash::MovieClip::unloadMovie(), gnash::MovieClip::advance(), gnash::MovieClip::goto_frame(), gnash::MovieClip::goto_labeled_frame(), gnash::MovieClip::add_display_object(), gnash::MovieClip::replace_display_object(), gnash::MovieClip::loadVariables(), gnash::MovieClip::removeMovieClip(), gnash::MovieFactory::makeMovie(), gnash::NetConnection_as::validateURL(), gnash::NetConnection_as::connect(), gnash::NetConnection_as::call(), gnash::NetStream_as::pause(), gnash::NetStream_as::play(), gnash::NetStream_as::seek(), gnash::NetStream_as::update(), gnash::BufferedAudioStreamer::attachAuxStreamer(), gnash::renderer::openvg::OpenVGBitmap::OpenVGBitmap(), gnash::renderer::openvg::OpenVGBitmap::applyPatternBitmap(), gnash::renderer::openvg::Renderer_ovg::init(), gnash::renderer::openvg::Renderer_ovg::drawVideoFrame(), gnash::renderer::openvg::Renderer_ovg::set_antialiased(), gnash::renderer::openvg::Renderer_ovg::printVGParams(), gnash::renderer::openvg::Renderer_ovg::printVGPath(), gnash::PathParser::run(), gnash::Player::run(), gnash::Player::CallbacksHandler::call(), gnash::Player::CallbacksHandler::notify(), gnash::PropertyList::addDestructiveGetter(), gnash::Qt4AggGlue::createRenderHandler(), gnash::Qt4Gui::init(), gnash::renderer::rawfb::RawFBDevice::RawFBDevice(), gnash::renderer::rawfb::RawFBDevice::~RawFBDevice(), gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8(), gnash::RcInitFile::loadFiles(), gnash::RcInitFile::parseFile(), gnash::RcInitFile::updateFile(), gnash::SWF::RemoveObjectTag::loader(), gnash::Renderer::renderToImage(), gnash::create_Renderer_agg(), gnash::Renderer_cairo::drawVideoFrame(), gnash::Renderer_cairo::apply_line_style(), gnash::renderer::gles1::Renderer_gles1::Renderer_gles1(), gnash::renderer::gles1::Renderer_gles1::drawVideoFrame(), gnash::renderer::gles1::Renderer_gles1::set_antialiased(), gnash::renderer::opengl::Tesselator::error(), gnash::colorFromHexString(), gnash::rtmp::RTMP::connect(), gnash::rtmp::RTMP::handlePacket(), gnash::SdlAggGlue::createRenderHandler(), gnash::SdlAggGlue::prepDrawingArea(), gnash::SWF::ShapeRecord::read(), gnash::SharedLib::SharedLib(), gnash::SharedLib::openLib(), gnash::SharedLib::getInitEntry(), gnash::SharedMem::~SharedMem(), gnash::SharedMem::attach(), gnash::SharedObjectLibrary::getLocal(), gnash::Socket::connected(), gnash::Socket::connect(), gnash::Socket::write(), gnash::Socket::tell(), gnash::Socket::seek(), gnash::Socket::go_to_end(), gnash::sound::sound_handler::addSoundBlock(), gnash::sound::sound_handler::delete_sound(), gnash::sound::sound_handler::stopEventSound(), gnash::sound::sound_handler::unplugInputStream(), gnash::sound::sound_handler::playStream(), gnash::sound::sound_handler::startSound(), gnash::sound::sound_handler::plugInputStream(), gnash::sound::AOS4_sound_handler::pause(), gnash::sound::AOS4_sound_handler::unpause(), gnash::sound::AOS4_sound_handler::audioTask(), gnash::sound::Mkit_sound_handler::pause(), gnash::sound::Mkit_sound_handler::unpause(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::sprite_definition::add_font(), gnash::sprite_definition::addBitmap(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::StartSound2Tag::loader(), gnash::StaticText::pointInShape(), gnash::StreamProvider::getStream(), gnash::SWF::StreamSoundBlockTag::loader(), gnash::SWFMovie::construct(), gnash::SWFMovie::advance(), gnash::SWFMovie::initializeCharacter(), gnash::SWFMovieDefinition::add_sound_sample(), gnash::SWFMovieDefinition::readHeader(), gnash::SWFMovieDefinition::completeLoad(), gnash::CharacterDictionary::getDisplayObject(), gnash::SWFMovieDefinition::read_all_swf(), gnash::SWFMovieDefinition::set_jpeg_loader(), gnash::SWFMovieDefinition::importResources(), gnash::SWFParser::read(), gnash::SWFStream::read_long_float(), gnash::SWFStream::read_d64(), gnash::SWFStream::read_u16(), gnash::SWFStream::read_u32(), gnash::SWFStream::seek(), gnash::SWFStream::open_tag(), gnash::SWFStream::close_tag(), gnash::SWFStream::consumeInput(), gnash::SWF::frame_label_loader(), gnash::SWF::sprite_loader(), gnash::SWF::define_sound_loader(), gnash::SWF::file_attributes_loader(), gnash::SWF::metadata_loader(), gnash::SWF::reflex_loader(), gnash::TextField::removeTextField(), gnash::TextField::setRestrict(), gnash::SWF::TextRecord::read(), gnash::TouchDevice::init(), gnash::TouchDevice::check(), gnash::TouchDevice::apply_ts_calibration(), gnash::TouchDevice::scanForDevices(), gnash::readRect(), gnash::readFills(), gnash::UinputDevice::~UinputDevice(), gnash::UinputDevice::scanForDevice(), gnash::UinputDevice::init(), gnash::URLAccessManager::allowXMLSocket(), gnash::URLAccessManager::allow(), gnash::VaapiImage::VaapiImage(), gnash::VaapiSubpicture::VaapiSubpicture(), gnash::VaapiSurfaceGLX::update(), gnash::VaapiSurfaceProxy::VaapiSurfaceProxy(), gnash::VaapiSurfaceProxy::~VaapiSurfaceProxy(), gnash::Video::Video(), gnash::media::ffmpeg::VideoConverterFfmpeg::VideoConverterFfmpeg(), gnash::media::gst::VideoConverterGst::VideoConverterGst(), gnash::media::gst::VideoConverterGst::init(), gnash::media::gst::VideoConverterGst::convert(), gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg(), gnash::media::gst::VideoDecoderGst::VideoDecoderGst(), gnash::media::gst::VideoDecoderGst::push(), gnash::SWF::VideoFrameTag::loader(), gnash::media::gst::VideoInputGst::VideoInputGst(), gnash::media::gst::VideoInputGst::makeWebcamDeviceSelection(), gnash::media::gst::VideoInputGst::setWebcam(), gnash::media::gst::VideoInputGst::webcamMakeVideoDisplayLink(), gnash::media::gst::VideoInputGst::webcamBreakVideoDisplayLink(), gnash::media::gst::VideoInputGst::webcamMakeVideoSaveLink(), gnash::media::gst::VideoInputGst::webcamBreakVideoSaveLink(), gnash::media::gst::VideoInputGst::webcamCreateSaveBin(), gnash::VM::setRegister(), gnash::VM::pushCallFrame(), gnash::sound::WAVWriter::WAVWriter(), gnash::renderer::x11::X11Device::X11Device(), gnash::renderer::x11::X11Device::getErrorString(), gnash::renderer::x11::X11Device::createWindow(), gnash::XML_as::parseXML(), and gnash::XMLNode_as::insertBefore().

#define __FUNCDNAME__   __FUNCTION__
#define __FUNCTION__   __FILE__":"dummyestr(__LINE__)
#define __PRETTY_FUNCTION__   __FUNCTION__
#define ARG_NUMBER   10

Defines the maximum number of template arguments.

The preprocessor generates templates with 1..ARG_NUMBER arguments.

#define DEFAULT_LOGFILE   "gnash-dbg.log"
#define dummyestr (   x)    dummystr(x)
#define dummystr (   x)    # x
#define GENERATE_LOG_TYPES (   r,
  _,
 
)    BOOST_PP_REPEAT(ARG_NUMBER, LOG_TEMPLATES, t)

Calls the macro LOG_TEMPLATES an ARG_NUMBER number of times, each time adding an extra typename argument to the template.

#define GNASH_REPORT_FUNCTION   gnash::log_debug("entering")

Referenced by gnash::AOS4Gui::run(), gnash::AOS4CairoGlue::resize(), gnash::AquaOglGlue::prepDrawingArea(), gnash::AquaOglGlue::render(), gnash::dbus_ext_setsockname(), gnash::DeviceGlue::probeDevices(), gnash::renderer::directfb::DirectFBDevice::DirectFBDevice(), gnash::renderer::directfb::DirectFBDevice::initDevice(), gnash::renderer::directfb::DirectFBDevice::attachWindow(), gnash::renderer::EGLDevice::EGLDevice(), gnash::renderer::x11::X11Device::initDevice(), gnash::renderer::EGLDevice::supportsRenderer(), gnash::renderer::EGLDevice::bindClient(), gnash::renderer::EGLDevice::attachWindow(), gnash::renderer::EGLDevice::queryEGLConfig(), gnash::renderer::EGLDevice::copyPbuffers(), gnash::Extension::initModuleWithFunc(), gnash::Extension::scanDir(), gnash::Extension::dumpModules(), gnash::gui::FBGui::resize_view(), gnash::gui::FBgles1Glue::FBgles1Glue(), gnash::gui::FBgles1Glue::~FBgles1Glue(), gnash::gui::FBgles1Glue::createRenderHandler(), gnash::gui::FBgles1Glue::init(), gnash::FltkAggGlue::resize(), gnash::FltkCairoGlue::resize(), gnash::renderer::GnashDevice::swapBuffers(), gnash::GtkAggGlue::GtkAggGlue(), gnash::GtkAggGlue::init(), gnash::GtkAggGlue::prepDrawingArea(), gnash::GtkAggGlue::createRenderHandler(), gnash::GtkAggGlue::setRenderHandlerSize(), gnash::GtkCairoGlue::GtkCairoGlue(), gnash::GtkGlExtGlue::GtkGlExtGlue(), gnash::gui::GtkOvgGlue::GtkOvgGlue(), gnash::gui::GtkOvgGlue::~GtkOvgGlue(), gnash::gui::GtkOvgGlue::init(), gnash::gui::GtkOvgGlue::prepDrawingArea(), gnash::gui::GtkOvgGlue::createRenderHandler(), gnash::gui::GtkOvgGlue::setRenderHandlerSize(), gnash::gui::GtkOvgGlue::beforeRendering(), gnash::gui::GtkOvgGlue::render(), gnash::gui::GtkOvgGlue::configure(), gnash::GtkExt::window_new(), gnash::gtkext_signal_connect_swapped(), gnash::Gui::resize_view(), gnash::HaikuGui::~HaikuGui(), gnash::HaikuGui::init(), gnash::HaikuGui::createWindow(), gnash::HaikuGui::run(), gnash::HaikuGui::createMenu(), gnash::HaikuGui::createMenuBar(), gnash::HaikuGui::setupEvents(), gnash::InputDevice::init(), gnash::lirc_ext_init(), gnash::lirc_ext_getkey(), gnash::MouseDevice::init(), gnash::movie_root::processInvoke(), gnash::NetStream_as::seek(), gnash::renderer::openvg::OpenVGBitmap::createRadialBitmap(), gnash::renderer::openvg::OpenVGBitmap::createLinearBitmap(), gnash::renderer::openvg::Renderer_ovg::drawVideoFrame(), gnash::renderer::openvg::StyleHandler::operator()(), gnash::renderer::rawfb::RawFBDevice::clear(), gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8(), gnash::renderer::rawfb::RawFBDevice::attachWindow(), gnash::renderer::rawfb::RawFBDevice::createWindow(), gnash::renderer::rawfb::RawFBDevice::eventLoop(), gnash::renderer::DirectFB::Renderer_DirectFB::init(), gnash::renderer::DirectFB::Renderer_DirectFB::begin_display(), gnash::renderer::DirectFB::Renderer_DirectFB::end_display(), gnash::renderer::DirectFB::Renderer_DirectFB::drawLine(), gnash::renderer::DirectFB::Renderer_DirectFB::drawPoly(), gnash::renderer::DirectFB::Renderer_DirectFB::drawShape(), gnash::renderer::DirectFB::Renderer_DirectFB::drawGlyph(), gnash::renderer::DirectFB::Renderer_DirectFB::apply_mask(), gnash::renderer::DirectFB::Renderer_DirectFB::disable_mask(), gnash::renderer::gles1::Renderer_gles1::~Renderer_gles1(), gnash::renderer::gles1::Renderer_gles1::init(), gnash::renderer::gles1::Renderer_gles1::drawVideoFrame(), gnash::renderer::gles1::Renderer_gles1::begin_display(), gnash::renderer::gles1::Renderer_gles1::end_display(), gnash::renderer::gles1::Renderer_gles1::drawLine(), gnash::renderer::gles1::Renderer_gles1::draw_poly(), gnash::renderer::gles1::Renderer_gles1::drawShape(), gnash::renderer::gles1::Renderer_gles1::drawGlyph(), gnash::renderer::gles1::Renderer_gles1::apply_mask(), gnash::renderer::gles1::Renderer_gles1::disable_mask(), gnash::renderer::gles1::Renderer_gles1::set_scale(), gnash::renderer::gles1::Renderer_gles1::set_invalidated_regions(), gnash::renderer::gles1::Renderer_gles1::startInternalRender(), gnash::renderer::gles1::Renderer_gles1::endInternalRender(), gnash::renderer::gles1::create_handler(), gnash::SharedLib::getDllSymbol(), gnash::TouchDevice::apply_ts_calibration(), gnash::VaapiContext::VaapiContext(), gnash::VaapiContext::~VaapiContext(), gnash::VaapiContext::initDecoder(), gnash::renderer::vaapi::VaapiDevice::VaapiDevice(), gnash::renderer::vaapi::VaapiDevice::initDevice(), gnash::VaapiDisplay::VaapiDisplay(), gnash::VaapiDisplay::~VaapiDisplay(), gnash::VaapiGlobalContext::VaapiGlobalContext(), gnash::VaapiGlobalContext::get(), gnash::VaapiImage::~VaapiImage(), gnash::VaapiSubpicture::~VaapiSubpicture(), gnash::renderer::x11::X11Device::X11Device(), gnash::renderer::x11::X11Device::~X11Device(), gnash::renderer::x11::X11Device::attachWindow(), and gnash::renderer::x11::X11Device::createWindow().

#define GNASH_REPORT_RETURN   gnash::log_debug("returning")
#define IF_VERBOSE_ACTION (   x)    do { if ( LogFile::getDefaultInstance().getActionDump() ) { x; } } while (0);
#define IF_VERBOSE_ASCODING_ERRORS (   x)    { if ( gnash::RcInitFile::getDefaultInstance().showASCodingErrors() ) { x; } }
#define IF_VERBOSE_MALFORMED_SWF (   x)    { if ( gnash::RcInitFile::getDefaultInstance().showMalformedSWFErrors() ) { x; } }

Referenced by gnash::action_buffer::read(), gnash::ActionExec::operator()(), gnash::ActionExec::skip_actions(), gnash::SWF::jpeg_tables_loader(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::DefineButtonSoundTag::loader(), gnash::SWF::ButtonAction::ButtonAction(), gnash::SWF::ButtonRecord::read(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineFontNameTag::loader(), gnash::SWF::DefineFontInfoTag::loader(), gnash::SWF::DefineSceneAndFrameLabelDataTag::loader(), gnash::DisplayList::moveDisplayObject(), gnash::SWF::DoABCTag::loader(), gnash::SWF::DoActionTag::loader(), gnash::SWF::DoInitActionTag::loader(), gnash::filter_factory::read(), gnash::Font::addFontNameInfo(), gnash::Font::setCodeTable(), gnash::movie_definition::importResources(), gnash::MovieClip::advance(), gnash::MovieClip::goto_labeled_frame(), gnash::MovieClip::add_display_object(), gnash::SWF::ShapeRecord::read(), gnash::sound::sound_handler::startSound(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::sprite_definition::add_font(), gnash::sprite_definition::addBitmap(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::StreamSoundBlockTag::loader(), gnash::SWFMovie::construct(), gnash::SWFMovie::advance(), gnash::SWFMovie::initializeCharacter(), gnash::SWFMovieDefinition::readHeader(), gnash::SWFMovieDefinition::read_all_swf(), gnash::SWF::SymbolClassTag::loader(), gnash::SWF::frame_label_loader(), gnash::SWF::sprite_loader(), gnash::SWF::define_sound_loader(), gnash::SWF::TextRecord::displayRecords(), gnash::readRect(), gnash::readFills(), and gnash::SWF::VideoFrameTag::loader().

#define IF_VERBOSE_NETWORK (   x)    do { if ( LogFile::getDefaultInstance().getNetwork() ) { x; } } while (0);
#define IF_VERBOSE_PARSE (   x)    do { if ( LogFile::getDefaultInstance().getParserDump() ) { x; } } while (0);

Referenced by gnash::abc::AbcBlock::read(), gnash::SWF::CSMTextSettingsTag::loader(), gnash::SWF::jpeg_tables_loader(), gnash::SWF::DefineBitsTag::loader(), gnash::SWF::DefineButtonCxformTag::loader(), gnash::SWF::DefineButtonTag::loader(), gnash::SWF::DefineButton2Tag::loader(), gnash::SWF::ButtonAction::ButtonAction(), gnash::SWF::ButtonRecord::read(), gnash::SWF::DefineFontAlignZonesTag::loader(), gnash::SWF::DefineFontTag::readCodeTable(), gnash::SWF::DefineMorphShapeTag::loader(), gnash::SWF::DefineScalingGridTag::loader(), gnash::SWF::DefineShapeTag::loader(), gnash::SWF::DefineTextTag::loader(), gnash::SWF::DefineText2Tag::loader(), gnash::SWF::DoABCTag::loader(), gnash::SWF::DoActionTag::loader(), gnash::SWF::DoInitActionTag::loader(), gnash::filter_factory::read(), gnash::DropShadowFilter::read(), gnash::BlurFilter::read(), gnash::GlowFilter::read(), gnash::BevelFilter::read(), gnash::GradientGlowFilter::read(), gnash::ConvolutionFilter::read(), gnash::ColorMatrixFilter::read(), gnash::GradientBevelFilter::read(), gnash::SWF::RemoveObjectTag::loader(), gnash::SWF::SetTabIndexTag::loader(), gnash::SWF::ShapeRecord::read(), gnash::SWF::SoundInfoRecord::read(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::StartSoundTag::loader(), gnash::SWF::StartSound2Tag::loader(), gnash::SWFMovieDefinition::add_sound_sample(), gnash::SWFMovieDefinition::readHeader(), gnash::CharacterDictionary::getDisplayObject(), gnash::SWFParser::read(), gnash::SWFStream::open_tag(), gnash::SWF::SymbolClassTag::loader(), gnash::SWF::sprite_loader(), gnash::SWF::define_sound_loader(), gnash::SWF::file_attributes_loader(), gnash::SWF::metadata_loader(), gnash::SWF::reflex_loader(), gnash::SWF::TextRecord::read(), and gnash::readFills().

#define LOG_ONCE (   x)
#define LOG_TEMPLATES (   z,
  n,
  data 
)
Value:
template<BOOST_PP_ENUM_PARAMS(BOOST_PP_INC(n), typename T)>\
inline void log_##data(BOOST_PP_REPEAT(BOOST_PP_INC(n), TOKENIZE_ARGS, t)) \
{\
    if (LogFile::getDefaultInstance().getVerbosity() == 0) return; \
    boost::format f(t0); \
    using namespace boost::io; \
    f.exceptions(all_error_bits ^ (too_many_args_bit | \
                                   too_few_args_bit | \
                                   bad_format_string_bit)); \
    processLog_##data(f BOOST_PP_REPEAT_FROM_TO(1, \
            BOOST_PP_INC(n), \
            TOKENIZE_FORMAT, t));\
}

This actually creates the template functions using the TOKENIZE functions above. The templates look like this: template<typename T0 , typename T1 , typename T2> void log_error(const T0& t0 , const T1& t1 , const T2& t2) { if (LogFile::getDefaultInstance().getVerbosity() == 0) return; boost::format f(t0); using namespace boost::io; f.exceptions(all_error_bits ^ (too_many_args_bit | too_few_args_bit | bad_format_string_bit)); processLog_error(f % t1 % t2); }

Only not as nicely indented.

Use "g++ -E log.h" or "cpp log.h" to check.

#define LOG_TYPES
Value:
(error) (debug) (unimpl) (aserror) (swferror) \
    (security) (action) (parse) (trace) (abc) (network)

This is a sequence of different log message types to be used in the code. Append the name to log_ to call the function, e.g. log_error, log_unimpl.

#define N_ (   String)    gettext_noop (String)
#define TOKENIZE_ARGS (   z,
  n,
 
)    BOOST_PP_COMMA_IF(n) const T##n& t##n

Macro to add a number of arguments to the templated function corresponding to the number of template arguments. Produces code like this: "const T0& t0, const T1& t1, const T2& t2 ..."

#define TOKENIZE_FORMAT (   z,
  n,
 
)    % t##n

This heap of steaming preprocessor code magically converts printf-style statements into boost::format messages using templates. Macro to feed boost::format strings to the boost::format object, producing code like this: "% t1 % t2 % t3 ..."

#define VERBOSE_ACTION   1
#define VERBOSE_ASCODING_ERRORS   1
#define VERBOSE_MALFORMED_SWF   1
#define VERBOSE_NETWORKING   1
#define VERBOSE_PARSE   1