~tim/lydia

025d432779415e52a9266f3f6b986b52020ba13c — Tim Morgan 8 years ago bb1e285
More verbose debugging for calls.
1 files changed, 4 insertions(+), 1 deletions(-)

M src/funcs.c
M src/funcs.c => src/funcs.c +4 -1
@@ 17,7 17,10 @@ LValue *l_eval_call_node(LNode *node, LValue *func, LClosure *closure) {

tail_loop:

  l_debug(L_DEBUG_CALL) printf(">>> entering %s\n", name);
  l_debug(L_DEBUG_CALL) {
    if(node) printf(">>> entering %s on line %d in %s\n", name, node->line_no, node->source_file);
    else printf(">>> entering %s\n", name);
  }

  if(strcmp(name, "") != 0)
    l_closure_set(cl, name, func, true);