bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59691] feature requests: something similiar to __LINE__ and __FILE


From: anonymous
Subject: [bug #59691] feature requests: something similiar to __LINE__ and __FILE__ in C
Date: Tue, 15 Dec 2020 09:06:24 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0

URL:
  <https://savannah.gnu.org/bugs/?59691>

                 Summary: feature requests: something similiar to __LINE__ and
__FILE__ in C
                 Project: make
            Submitted by: None
            Submitted on: Tue 15 Dec 2020 02:06:22 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.3
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

This is while developing Bismon (a GPLv3+ static source code analyzer
leveraging above GCC on Linux; see https://github.com/bstarynk/bismon/ for the
source code, and http://starynkevitch.net/Basile/bismon-chariot-doc.pdf for a
DRAFT report describing it.


It would be nice to have in GNU make something inspired by GCC magical macros:
__FILE__, __LINE__, and __COUNT__

We could have a GNU make textual function $(this_file) which would expand to
the current file name (e.g. to 'Makefile`). And a GNU make textual function
$(this_line) expanded to the current file number. And a GNU make textual
function $(this_counter) expanded to  a unique counter (incremented at each
invokation).




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59691>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]