41 #ifndef _SYNCML_INTERNALS_H
42 #define _SYNCML_INTERNALS_H
48 #include <glib/gprintf.h>
59 #if defined(sun) && defined(__SVR4)
60 #define __FUNCTION__ __func__
63 #define smlAssert(x) if (!(x)) { fprintf(stderr, "%s:%i:E:%s: Assertion \"" #x "\" failed\n", __FILE__, __LINE__, __FUNCTION__); abort();}
64 #define smlAssertMsg(x, msg) if (!(x)) { fprintf(stderr, "%s:%i:E:%s: %s\n", __FILE__, __LINE__, __FUNCTION__, msg); abort();}
65 #define segfault_me char **blablabla = NULL; *blablabla = "test";
67 #define return_if_fail(condition) do { \
72 #define return_val_if_fail(condition, val) do { \
77 #include "sml_support.h"
78 #include "sml_parse.h"