Branch: Tag:

2003-02-04

2003-02-04 17:29:19 by Martin Stjernholm <mast@lysator.liu.se>

Provide line number info for C programs even when compiling without
rtldebug, but strip off the path to the build tree. Let Function.defined
return the line number info for the program when it's a C function that
doesn't have any line info itself.

Rev: src/Makefile.in:1.345
Rev: src/builtin_functions.c:1.468
Rev: src/program.c:1.478
Rev: src/program.h:1.175

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.h,v 1.174 2003/01/31 01:50:53 mast Exp $ + || $Id: program.h,v 1.175 2003/02/04 17:29:19 mast Exp $   */      #ifndef PROGRAM_H
723:   #endif       - #ifdef PIKE_DEBUG +    #define start_new_program() debug_start_new_program(__LINE__,__FILE__) - #else - #define start_new_program() debug_start_new_program(0, "native module") - #endif +       #define gc_cycle_check_program(X, WEAK) \    gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_program, (X), (WEAK))