vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Nicolas
Hi, Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ usage in C++ ? Thank you Nicolas -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below th

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Lifepillar
On 2023-07-04, Nicolas wrote: > Hi, > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > usage in C++ > The closest to __FILE__ is likely (`:help `). I use this snippet to get the path of the

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Nicolas
Hi Life, My Main goal is to add prefix of vim9script current '__FUNCTION__' to my debug message. Thank you for help Nicolas Le mardi 4 juillet 2023 à 22:11:31 UTC+2, Lifepillar a écrit : > On 2023-07-04, Nicolas wrote: > > Hi, > > > > Is there an equivalence in vim9 of __FILE__, __LINE__, and

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Lifepillar
On 2023-07-04, Nicolas wrote: > Hi Life, > > My Main goal is to add prefix of vim9script current '__FUNCTION__' to my > debug message. Something along these lines, perhaps? vim9script def Debug(F: func) echo string(F) enddef def Foo() Debug(Foo) enddef def

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Yegappan Lakshmanan
On Tue, Jul 4, 2023 at 1:11 PM Lifepillar wrote: > > On 2023-07-04, Nicolas wrote: > > Hi, > > > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > > usage in C++ > > > > > For __LINE__ and __F