Moved definitions and added debug build to vvm
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
||||
DEBUG+=-DDEBUG=1
|
||||
DEBUG+=-DDEBUG_ON
|
||||
PREFIX=/usr/bin
|
||||
BUILDDIR=bin/
|
||||
|
||||
|
@@ -1,10 +1,5 @@
|
||||
#include "vm.h"
|
||||
|
||||
#define MAX_SIZE 4096
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define DEBUG FALSE
|
||||
|
||||
/**
|
||||
* @brief disassemble
|
||||
* @param sp -> stack pointer
|
||||
|
@@ -8,6 +8,15 @@
|
||||
#include "util.h"
|
||||
#include "opcode.h"
|
||||
|
||||
#define MAX_SIZE 4096
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#ifdef DEBUG_ON
|
||||
#define DEBUG TRUE
|
||||
#else
|
||||
#define DEBUG FALSE
|
||||
#endif
|
||||
|
||||
typedef struct{
|
||||
unsigned long length;
|
||||
int entrypoint;
|
||||
|
Reference in New Issue
Block a user