Home Download Buy Blog Forum Support

Pass line number in build system

Pass line number in build system

Postby dpo on Tue Feb 18, 2014 12:04 am

Howdy,

A build system allows to specify various quantities via pre-defined variables, including $file_path, $project_base_name, $file_name, and so on. But is there a way to get the line number from where the build was invoked? The variable $line isn't recognized. I would favor a "pure build system" solution, i.e., one that doesn't involve developing a Python plugin. However, that may not be possible.

Thanks!
dpo
 
Posts: 1
Joined: Sun Dec 16, 2012 3:07 am

Re: Pass line number in build system

Postby FichteFoll on Mon Feb 24, 2014 2:44 am

I don't know of any other variable than those listed here.

So no, unless someone already wrote a plugin to do this you will have to write some Python code yourself or wait for the developer(s) to possibly implement this feature. And during that process he could as well provide an API to expand these variables because currently they are only interpreted by the build system parser and replaced before forwarded to the build (`exec`) command.
FichteFoll
 
Posts: 388
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Plugin Development

Who is online

Users browsing this forum: alkuzad and 7 guests