Advanced Strategic Command
Classes | Macros | Functions
stack.h File Reference

Interface for a small general-purpose stack (not type safe) More...

#include <SDL_stdinc.h>
Include dependency graph for stack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fatalstackerror
 

Macros

#define npush(a)   pushdata( (Uint8*)&a, sizeof ( a ) )
 
#define npop(a)   popdata ( (Uint8*)&a, sizeof ( a ) )
 

Functions

void pushdata (Uint8 *daten, int size)
 
void popdata (Uint8 *daten, int size)
 
int stackfree (void)
 

Detailed Description

Interface for a small general-purpose stack (not type safe)

Definition in file stack.h.

Macro Definition Documentation

#define npop (   a)    popdata ( (Uint8*)&a, sizeof ( a ) )
#define npush (   a)    pushdata( (Uint8*)&a, sizeof ( a ) )

Function Documentation

void popdata ( Uint8 *  daten,
int  size 
)

Definition at line 69 of file stack.cpp.

References magic, and pop_data().

void pushdata ( Uint8 *  daten,
int  size 
)

Definition at line 58 of file stack.cpp.

References magic, push_data(), stackofs, stackpointer, and stacksize.

int stackfree ( void  )

Definition at line 79 of file stack.cpp.

References stackofs, and stacksize.