Macro to return of path of a file

I wanted a macro which can return Path of a filename given that the file otherwise it will cause compile time error.

let path = some_macro! ("filename");

Here that some_macro checks if there is some file exists of that filename and returns the path, otherwise it will fail during the compilation. Is there any library that contains that kind of macro?

1 Like


1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.