#ifndef _LINKSTACK_H_ #define _LINKSTACK_H_ #define PKT_ASSERT(x) {if((x) == NULL){printf("assert failed!\n"); while(1);}} struct stack_frame { int data; }; typedef struct stack_frame *stack_frame_t; typedef struct linkstack *linkstack_t; struct linkstack { struct stack_frame frame; linkstack_t next; }; #endif