Crossfire Server, Trunk
toolkit_common.h
Go to the documentation of this file.
1 /* toolkit_common.c */
2 void cctk_setlog(const char *logfile);
3 void cctk_setdatadir(const char *datadir);
4 void cctk_init_std_archetypes(void);
5 object *cctk_create_game_object(const char *archname);
6 void cctk_set_object_strings(object *op, const char *string);
7 
8 /* Check's macros adds an extra NULL which makes compilers complain, so use our own macro */
9 #define FAIL(...) _ck_assert_failed(__FILE__, __LINE__, "Failed" , ## __VA_ARGS__)
10 
11 #define FAIL_UNLESS(expr, ...) \
12  (expr) ? \
13  _mark_point(__FILE__, __LINE__) : \
14  _ck_assert_failed(__FILE__, __LINE__, "Assertion '"#expr"' failed" , ## __VA_ARGS__)
15 
16 #define FAIL_IF(expr, ...)\
17  (expr) ? \
18  _ck_assert_failed(__FILE__, __LINE__, "Failure '"#expr"' occurred" , ## __VA_ARGS__) \
19  : _mark_point(__FILE__, __LINE__)
cctk_setdatadir
void cctk_setdatadir(const char *datadir)
Definition: toolkit_common.cpp:69
cctk_create_game_object
object * cctk_create_game_object(const char *archname)
Definition: toolkit_common.cpp:105
cctk_setlog
void cctk_setlog(const char *logfile)
Definition: toolkit_common.cpp:64
logfile
FILE * logfile
Definition: init.cpp:114
cctk_init_std_archetypes
void cctk_init_std_archetypes(void)
Definition: toolkit_common.cpp:83
give.op
op
Definition: give.py:33
cctk_set_object_strings
void cctk_set_object_strings(object *op, const char *string)
Definition: toolkit_common.cpp:127