paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

`construct_runtime`: support for expanding the macro code #14379

Closed michalkucharczyk closed 1 year ago

michalkucharczyk commented 1 year ago

Support for expanding the generated code from construct_runtime macro into the source file which is included. Allows for better macro debugging (error points to the particular line in expanded source files).

Based on: https://github.com/paritytech/substrate/pull/13573

Setting FRAME_EXPAND environment variable enables feature.

michalkucharczyk commented 1 year ago

bot merge