comparison include/SDL_loadso.h @ 649:81c74904f51f

Added some notes from the benefit of my experience. :)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Jul 2003 07:56:19 +0000
parents 12a21d82a060
children b8d311d90021
comparison
equal deleted inserted replaced
648:12a21d82a060 649:81c74904f51f
25 "@(#) $Id$"; 25 "@(#) $Id$";
26 #endif 26 #endif
27 27
28 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 28 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
29 /* System dependent library loading routines */ 29 /* System dependent library loading routines */
30
31 /* Some things to keep in mind:
32 - These functions only work on C function names. Other languages may
33 have name mangling and intrinsic language support that varies from
34 compiler to compiler.
35 - Make sure you declare your function pointers with the same calling
36 convention as the actual library function. Your code will crash
37 mysteriously if you do not do this.
38 - Avoid namespace collisions. If you load a symbol from the library,
39 it is not defined whether or not it goes into the global symbol
40 namespace for the application. If it does and it conflicts with
41 symbols in your code or other shared libraries, you will not get
42 the results you expect. :)
43 */
44
30 45
31 #ifndef _SDL_loadso_h 46 #ifndef _SDL_loadso_h
32 #define _SDL_loadso_h 47 #define _SDL_loadso_h
33 48
34 #include "begin_code.h" 49 #include "begin_code.h"