⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swfdec_debug.c

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 C
字号:
/* Swfdec * Copyright (C) 2003-2006 David Schleef <ds@schleef.org> *		 2005-2006 Eric Anholt <eric@anholt.net> *		 2006-2007 Benjamin Otte <otte@gnome.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor,  * Boston, MA  02110-1301  USA */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <glib.h>#include "swfdec_debug.h"static const char *swfdec_debug_level_names[] = {  "NONE ",  "ERROR",  "FIXME",  "WARN ",  "INFO ",  "DEBUG",  "LOG  "};#ifndef SWFDEC_LEVEL_DEFAULT#  define SWFDEC_LEVEL_DEFAULT SWFDEC_LEVEL_FIXME#endifstatic guint swfdec_debug_level = SWFDEC_LEVEL_DEFAULT;voidswfdec_debug_log (guint level, const char *file, const char *function,    int line, const char *format, ...){  va_list varargs;  char *s;  if (level > swfdec_debug_level)    return;  va_start (varargs, format);  s = g_strdup_vprintf (format, varargs);  va_end (varargs);  g_printerr ("SWFDEC: %s: %s(%d): %s: %s\n",      swfdec_debug_level_names[level], file, line, function, s);  g_free (s);}voidswfdec_debug_set_level (guint level){  if (swfdec_debug_level >= G_N_ELEMENTS (swfdec_debug_level_names))    swfdec_debug_level = G_N_ELEMENTS (swfdec_debug_level_names) - 1;  else    swfdec_debug_level = level;}intswfdec_debug_get_level (void){  return swfdec_debug_level;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -