Skip to content

Instantly share code, notes, and snippets.

@cfcosta
Created February 21, 2012 00:19
Show Gist options
  • Save cfcosta/1872507 to your computer and use it in GitHub Desktop.
Save cfcosta/1872507 to your computer and use it in GitHub Desktop.
#ifndef H_STACK_COLLECTION
#define H_STACK_COLLECTION
#define traverse_stack(stack) sprite_node *current = first; \
while(*current = *current->next)
#include "graphics.h"
typedef struct {
sprite *sprite;
sprite_node *previous;
sprite_node *next;
} sprite_node;
sprite_node *first;
sprite_node *last;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment