-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.h
More file actions
29 lines (25 loc) · 673 Bytes
/
debug.h
File metadata and controls
29 lines (25 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Implementace interpretu imperativního jazyka IFJ16.
*
* Jakub Fajkus
* Richard Bureš
*/
#ifndef IFJ_DEBUG_H
#define IFJ_DEBUG_H
#include "doublelinkedlist.h"
#include "stack.h"
#ifndef NOT_DEBUG
#define debugPrintf(...) printf(__VA_ARGS__)
#else
#define debugPrintf(...)
#endif
void printAllTokens(tDLList *list);
void printToken(TOKEN *token);
void printEnumValue(int value);
void printToken(TOKEN *token);
void printStack(tStack stack);
void printEaTerminalType(enum EA_TERMINAL_TYPE_ENUM type);
void printInstruction(INSTRUCTION *instruction);
void printInstructions(tDLList *instructions);
void printFrame(tDLList *frame);
#endif //IFJ_DEBUG_H