/Users/hercules/trunk/SDL-1.2/include/begin_code.h File Reference

Go to the source code of this file.

Defines

#define DECLSPEC
#define SDLCALL
#define __inline__   inline
#define SDL_INLINE_OKAY
#define NULL   ((void *)0)


Detailed Description

This file sets things up for C dynamic library function definitions, static inlined functions, and structures aligned at 4-byte alignment. If you don't like ugly C preprocessor code, don't look at this file. :)

This shouldn't be nested -- included it around code only.

Force structure packing at 4 byte alignment. This is necessary if the header is included in code which has structure packing set to an alternate value, say for loading structures from disk. The packing is reset to the previous value in close_code.h


Define Documentation

#define __inline__   inline

If inlining isn't supported, remove "__inline__", turning static inlined functions into static functions (resulting in code bloat in all files which include the offending header files)

#define DECLSPEC

Some compilers use a special export keyword

#define NULL   ((void *)0)

Apparently this is needed by several Windows compilers

#define SDL_INLINE_OKAY

Set up compiler-specific options for inlining functions

#define SDLCALL

By default SDL uses the C calling convention


Generated on Mon Sep 21 21:29:50 2009 for Simple DirectMedia Layer by  doxygen 1.5.8