diff options
| author | Keith Packard <keithp@keithp.com> | 2017-12-03 19:47:03 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-12-03 19:47:03 -0800 | 
| commit | ed6967cef5d82baacafe1c23229f44d58c838326 (patch) | |
| tree | 42a297a91356516df606d5a31002f6caa1df3b8a /src/lisp/ao_lisp_eval.c | |
| parent | b9009b3916956db00b7b78bd06fb0df704690eb1 (diff) | |
altos/lisp: Split out read debug, add memory validation
Split read debug into a separate #define to reduce debug noise
Add some memory validation -- validate stash API, and validate
cons_free calls.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_eval.c')
| -rw-r--r-- | src/lisp/ao_lisp_eval.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/lisp/ao_lisp_eval.c b/src/lisp/ao_lisp_eval.c index 02329ee6..ced182f6 100644 --- a/src/lisp/ao_lisp_eval.c +++ b/src/lisp/ao_lisp_eval.c @@ -68,7 +68,7 @@ func_type(ao_poly func)  static int  ao_lisp_eval_sexpr(void)  { -	DBGI("sexpr: "); DBG_POLY(ao_lisp_v); DBG("\n"); +	DBGI("sexpr: %v\n", ao_lisp_v);  	switch (ao_lisp_poly_type(ao_lisp_v)) {  	case AO_LISP_CONS:  		if (ao_lisp_v == AO_LISP_NIL) { @@ -193,8 +193,8 @@ ao_lisp_eval_formal(void)  			ao_lisp_stack->sexprs = prev->sexprs;  			DBGI(".. start macro\n"); -			DBGI(".. sexprs       "); DBG_POLY(ao_lisp_stack->sexprs); DBG("\n"); -			DBGI(".. values       "); DBG_POLY(ao_lisp_stack->values); DBG("\n"); +			DBGI("\t.. sexprs       "); DBG_POLY(ao_lisp_stack->sexprs); DBG("\n"); +			DBGI("\t.. values       "); DBG_POLY(ao_lisp_stack->values); DBG("\n");  			DBG_FRAMES();  			/* fall through ... */ | 
