mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Object type checking fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@638 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
cf7eb945ea
commit
b4bdec4436
15 changed files with 78 additions and 75 deletions
|
|
@ -4,14 +4,12 @@
|
|||
#include "queries.h"
|
||||
#include "irc-servers.h"
|
||||
|
||||
#define IS_IRC_QUERY(query) \
|
||||
((query) != NULL && \
|
||||
module_find_id("IRC QUERY", \
|
||||
((QUERY_REC *) (query))->chat_type) != -1)
|
||||
|
||||
/* Returns IRC_QUERY_REC if it's IRC query, NULL if it isn't. */
|
||||
#define IRC_QUERY(query) \
|
||||
(IS_IRC_QUERY(query) ? (QUERY_REC *) (query) : NULL)
|
||||
MODULE_CHECK_CAST(query, QUERY_REC, chat_type, "IRC QUERY")
|
||||
|
||||
#define IS_IRC_QUERY(query) \
|
||||
(IRC_QUERY(query) ? TRUE : FALSE)
|
||||
|
||||
void irc_queries_init(void);
|
||||
void irc_queries_deinit(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue