mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +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
|
|
@ -1,13 +1,13 @@
|
|||
#ifndef __IRC_SERVERS_SETUP_H
|
||||
#define __IRC_SERVERS_SETUP_H
|
||||
|
||||
#define IS_IRC_SERVER_SETUP(server) \
|
||||
((server) != NULL && \
|
||||
module_find_id("IRC SERVER SETUP", (server)->chat_type) != -1)
|
||||
|
||||
#define IRC_SERVER_SETUP(server) \
|
||||
(IS_IRC_SERVER_SETUP(server) ? \
|
||||
(IRC_SERVER_SETUP_REC *) (server) : NULL)
|
||||
MODULE_CHECK_CAST(server, IRC_SERVER_SETUP_REC, \
|
||||
chat_type, "IRC SERVER SETUP")
|
||||
|
||||
#define IS_IRC_SERVER_SETUP(server) \
|
||||
(IRC_SERVER_SETUP(server) ? TRUE : FALSE)
|
||||
|
||||
typedef struct {
|
||||
#include "server-setup-rec.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue