Open FR-Montreuil opened 2 years ago
Another way : find an option in cpp to have a short name path for the macro __FILE__
Thanks, @FR-Montreuil . I like this idea, too. We'll look for a way to shorten the path in those messages.
Hi,
I have suggested a way but I have also read other way https://stackoverflow.com/questions/8487986/file-macro-shows-full-path
Take care
The MFU_LOG function gives some debuging informations such as the full or absolute path of the source code. Here is an example:
Well, in a context of deploying on a HPC calculator, I found a bit tricky to have in this example the absolute path with my user name. I would rather see a short source code path such as :
I have test a modification in the source code :
So my idea here is to shorten the path to code source to avoid the guy's username path that have compile the library.
What ever the way of doing that... Changing the mfu_debug_level at MFU_LOG_NONE is a pity because those informations are interesting however. I did not find any way in compile options or whatsoever to avoid the long path source code.
Does it sound right or silly ?
It is my firt post, so, be cool and don't upset yoursef, please ;-)