print compiled macros correctly
* libguile/macros.c (macro_print): Print macros whose code is a program as non-primitive. (Already, primitive-macro? would return #f.)
This commit is contained in:
parent
80b5909ca8
commit
3633ff4e95
1 changed files with 2 additions and 1 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "libguile/deprecation.h"
|
||||
|
||||
#include "libguile/validate.h"
|
||||
#include "libguile/programs.h"
|
||||
#include "libguile/macros.h"
|
||||
|
||||
#include "libguile/private-options.h"
|
||||
|
|
@ -44,7 +45,7 @@ macro_print (SCM macro, SCM port, scm_print_state *pstate)
|
|||
|| scm_is_false (scm_printer_apply (SCM_PRINT_CLOSURE,
|
||||
macro, port, pstate)))
|
||||
{
|
||||
if (!SCM_CLOSUREP (code))
|
||||
if (!SCM_CLOSUREP (code) && !SCM_PROGRAM_P (code))
|
||||
scm_puts ("#<primitive-", port);
|
||||
else
|
||||
scm_puts ("#<", port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue