source: abuse/trunk/src/exitproc.hpp @ 112

Last change on this file since 112 was 66, checked in by Sam Hocevar, 11 years ago
  • Added the proper .h and .hpp files to _SOURCES variables. As a result, "make dist" now generates a buildable tarball.
File size: 496 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#ifndef __EXITPROC_HPP_
11#define __EXITPROC_HPP_
12
13#include <stdlib.h>
14
15#ifdef HAVE_ATEXIT
16#define exit_proc(x,y) atexit(y)
17#elif defined (HAVE_ON_EXIT)
18#define exit_proc(x,y) on_exit(x,NULL)
19#else
20#error no atexit?!?
21#endif
22
23
24#endif
Note: See TracBrowser for help on using the repository browser.