Can a post assembly go to a specific line of code?

I wrote a small program that will run as a post-build step when compiling certain projects.

This program returns 0 for success or some number for failure. In the event of a failure, Visual Studio then correctly displays: "The command [...] exited with code n."

However, a single number is not always useful. In my case, I really want the error to point to a specific place in the source code. Is it possible to display the file name and line number so that Visual Studio actually allows me to simply double-click on the error and instantly get there?

+3
source share
2 answers

, , .

D:\dev\project\Code\MyClasscpp(68) : something terrible happened

, .

,

Sebastiaan

+14

Source: https://habr.com/ru/post/1718757/


All Articles