Advanced Strategic Command
stack.h
Go to the documentation of this file.
1 
5 // $Id: stack.h,v 1.6 2009-04-18 13:48:38 mbickel Exp $
6 //
7 // $Log: not supported by cvs2svn $
8 // Revision 1.5 2001/01/28 14:04:20 mbickel
9 // Some restructuring, documentation and cleanup
10 // The resource network functions are now it their own files, the dashboard
11 // as well
12 // Updated the TODO list
13 //
14 // Revision 1.4 2001/01/21 12:48:36 mbickel
15 // Some cleanup and documentation
16 //
17 // Revision 1.3 2000/01/04 19:43:54 mbickel
18 // Continued Linux port
19 //
20 // Revision 1.2 1999/11/16 03:42:38 tmwilson
21 // Added CVS keywords to most of the files.
22 // Started porting the code to Linux (ifdef'ing the DOS specific stuff)
23 // Wrote replacement routines for kbhit/getch for Linux
24 // Cleaned up parts of the code that gcc barfed on (char vs unsigned char)
25 // Added autoconf/automake capabilities
26 // Added files used by 'automake --gnu'
27 //
28 //
29 /*
30  This file is part of Advanced Strategic Command; http://www.asc-hq.de
31  Copyright (C) 1994-2010 Martin Bickel and Marc Schellenberger
32 
33  This program is free software; you can redistribute it and/or modify
34  it under the terms of the GNU General Public License as published by
35  the Free Software Foundation; either version 2 of the License, or
36  (at your option) any later version.
37 
38  This program is distributed in the hope that it will be useful,
39  but WITHOUT ANY WARRANTY; without even the implied warranty of
40  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41  GNU General Public License for more details.
42 
43  You should have received a copy of the GNU General Public License
44  along with this program; see the file COPYING. If not, write to the
45  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
46  Boston, MA 02111-1307 USA
47 */
48 
49 #ifndef stack_h_included
50  #define stack_h_included
51  #include <SDL_stdinc.h>
52 
53  #define npush(a) pushdata( (Uint8*)&a, sizeof ( a ) )
54  #define npop(a) popdata ( (Uint8*)&a, sizeof ( a ) )
55 
56  extern void pushdata(Uint8 * daten, int size);
57 
58  extern void popdata(Uint8 * daten, int size);
59 
60  extern int stackfree(void);
61 
62  class fatalstackerror {};
63 #endif
void popdata(Uint8 *daten, int size)
Definition: stack.cpp:69
int stackfree(void)
Definition: stack.cpp:79
void pushdata(Uint8 *daten, int size)
Definition: stack.cpp:58