Fixed the horrendous 'unbound symbol nil' bug. Also work on documentation and
unit tests.
This commit is contained in:
parent
3659103dd7
commit
5e6363e6ae
17 changed files with 328 additions and 143 deletions
55
src/debug.h
55
src/debug.h
|
|
@ -1,4 +1,4 @@
|
|||
/**
|
||||
/*
|
||||
* debug.h
|
||||
*
|
||||
* Better debug log messages.
|
||||
|
|
@ -13,14 +13,67 @@
|
|||
#ifndef __debug_print_h
|
||||
#define __debug_print_h
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging memory allocation.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_ALLOC 1
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging arithmetic operations.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_ARITH 2
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging symbol binding.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_BIND 4
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging bootstrapping and teardown.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_BOOTSTRAP 8
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging evaluation.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_EVAL 16
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging input/output operations.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_IO 32
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging lambda functions (interpretation).
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_LAMBDA 64
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging the read eval print loop.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_REPL 128
|
||||
|
||||
/**
|
||||
* @brief Print messages debugging stack operations.
|
||||
*
|
||||
* Flag interpretation for the value of `verbosity`, defined in `debug.c`, q.v.
|
||||
*/
|
||||
#define DEBUG_STACK 256
|
||||
|
||||
extern int verbosity;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue