The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: An_dz on June 22, 2019, 05:16:53 PM

Title: Makeobj function to output expanded dat file
Post by: An_dz on June 22, 2019, 05:16:53 PM
This patch adds an expand function to makeobj to output the dat file as recognised by makeobj. This will output the same dat file as input but with all 'pre-processor' directives expanded.

Its use is for debugging dat files and for using it for other tools that don't recognise the new makeobj options like Simutranslator.

I want to checkout with you if I should push this to trunk.
Title: Re: Makeobj function to output expanded dat file
Post by: Dwachs on June 22, 2019, 07:21:54 PM
looks good. The patch is quite short.
Title: Re: Makeobj function to output expanded dat file
Post by: makie on June 29, 2019, 07:45:17 AM
makeobj expand is integrated in Translator Import.
The Translator do not always call makeobj expand, it try to recognize short-cut.
Maybe this fails sometimes, if so give me a note.

if something like %include is build in makeobj the recognition needs to be extended.

for the present, it works fine