BitShares/bitshares — pull request #1006 by drltc (2014-11-17 22:16:01+00:00)
Title: Dump config.hpp values as JSON with config_info RPC / --config-info option

I'm developing a Python testing script and I want to be able to access the `config.hpp` values so I don't hard code any assumptions about them into the tests.

So I made a quick shell / sed script to get the list of macro names, then hand-edited it to deal with `BTS_TEST_NETWORK`. Then I implemented an RPC and dump-and-exit command line parameter to show the `config.hpp` values as JSON.

In the future we may want to make `config_info.hpp` generation more automated and integrated with the build process. The eventual goal would be having it removed from the repo entirely and generated automatically during the build on all platforms. But it will work well enough as-is for the foreseeable future, so this enhancement is very low priority.