Internal.h File Reference

#include <stdio.h>

Go to the source code of this file.


Defines

#define CSFML_CHECK(Object)
#define CSFML_CALL(Object, Function)
#define CSFML_CALL_PTR(Object, Function)
#define CSFML_CHECK_RETURN(Object, Default)
#define CSFML_CALL_RETURN(Object, Function, Default)
#define CSFML_CALL_PTR_RETURN(Object, Function, Default)

Define Documentation

#define CSFML_CALL ( Object,
Function   ) 

Value:

if (Object) \
                { \
                    (Object->This.Function); \
                } \
                else \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                } \

Definition at line 41 of file Internal.h.

#define CSFML_CALL_PTR ( Object,
Function   ) 

Value:

if (Object) \
                { \
                    (Object->This->Function); \
                } \
                else \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                } \

Definition at line 51 of file Internal.h.

#define CSFML_CALL_PTR_RETURN ( Object,
Function,
Default   ) 

Value:

if (Object) \
                { \
                    return (Object->This->Function); \
                } \
                else \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                    return Default; \
                } \

Definition at line 79 of file Internal.h.

#define CSFML_CALL_RETURN ( Object,
Function,
Default   ) 

Value:

if (Object) \
                { \
                    return (Object->This.Function); \
                } \
                else \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                    return Default; \
                } \

Definition at line 68 of file Internal.h.

#define CSFML_CHECK ( Object   ) 

Value:

if (Object == NULL) \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                    return; \
                }

Definition at line 34 of file Internal.h.

#define CSFML_CHECK_RETURN ( Object,
Default   ) 

Value:

if (Object == NULL) \
                { \
                    fprintf(stderr, "SFML warning : trying to use a null " #Object " object\n"); \
                    return Default; \
                }

Definition at line 61 of file Internal.h.