home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / M2V11-2.LHA / modula / dice / dice.lha / dynamic / dynamic.lha / objsrc / libs / layers.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-29  |  431 b   |  34 lines

  1.  
  2. /*
  3.  *  LAYERS.C  layers.library support
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <clib/exec_protos.h>
  9.  
  10. typedef struct Library Library;
  11.  
  12. #define LIBBASE hyper_LayersBase
  13. #define LIBNAME "layers.library"
  14.  
  15. Library *LIBBASE;
  16.  
  17. long
  18. _auto_start()
  19. {
  20.     if (LIBBASE = OpenLibrary(LIBNAME, 0))
  21.     return(1);
  22.     return(0);
  23. }
  24.  
  25. void
  26. _auto_exit()
  27. {
  28.     if (LIBBASE) {
  29.     CloseLibrary(LIBBASE);
  30.     LIBBASE = NULL;
  31.     }
  32. }
  33.  
  34.