debug.xs
来自「Linux下的多协议即时通讯程序源代码」· XS 代码 · 共 73 行
XS
73 行
#include "module.h"MODULE = Purple::Debug PACKAGE = Purple::Debug PREFIX = purple_debug_PROTOTYPES: ENABLEBOOT:{ HV *stash = gv_stashpv("Purple::Debug", 1); static const constiv *civ, const_iv[] = {#define const_iv(name) {#name, (IV)PURPLE_DEBUG_##name} const_iv(ALL), const_iv(MISC), const_iv(INFO), const_iv(WARNING), const_iv(ERROR), const_iv(FATAL), }; for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; ) newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));}voidpurple_debug(level, category, string) Purple::DebugLevel level const char *category const char *stringCODE: purple_debug(level, category, "%s", string);voidpurple_debug_misc(category, string) const char *category const char *stringCODE: purple_debug_misc(category, "%s", string);voidpurple_debug_info(category, string) const char *category const char *stringCODE: purple_debug_info(category, "%s", string);voidpurple_debug_warning(category, string) const char *category const char *stringCODE: purple_debug_warning(category, "%s", string);voidpurple_debug_error(category, string) const char *category const char *stringCODE: purple_debug_error(category, "%s", string);voidpurple_debug_fatal(category, string) const char *category const char *stringCODE: purple_debug_fatal(category, "%s", string);voidpurple_debug_set_enabled(enabled) gboolean enabledgbooleanpurple_debug_is_enabled()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?