Advanced Strategic Command
|
Interface for a small general-purpose stack (not type safe) More...
#include <SDL_stdinc.h>
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) |
Interface for a small general-purpose stack (not type safe)
Definition in file stack.h.
#define npop | ( | a | ) | popdata ( (Uint8*)&a, sizeof ( a ) ) |
Definition at line 54 of file stack.h.
Referenced by tdialogbox::copyvirtualframebuf(), tdialogbox::disablebutton(), tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::done(), tdialogbox::enablebutton(), Building::execnetcontrol(), infomessage(), tdialogbox::rahmen3(), showtext3(), showtext3c(), tstringselect::viewtext(), SaveUnitMovement::~SaveUnitMovement(), and tdialogbox::~tdialogbox().
#define npush | ( | a | ) | pushdata( (Uint8*)&a, sizeof ( a ) ) |
Definition at line 53 of file stack.h.
Referenced by tdialogbox::copyvirtualframebuf(), tdialogbox::disablebutton(), tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::enablebutton(), Building::execnetcontrol(), infomessage(), tdialogbox::init(), tdialogbox::rahmen3(), SaveUnitMovement::SaveUnitMovement(), showtext3(), showtext3c(), tdialogbox::tdialogbox(), and tstringselect::viewtext().
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.