sifive / wake

The SiFive wake build tool
Other
86 stars 28 forks source link

How to get current function name? #1607

Closed davidmlw closed 1 month ago

davidmlw commented 1 month ago

Some times it is useful to get current function name.

global def build_task_a _args = 
  functionName # return "build_task_a"
V-FEXrt commented 1 month ago

This is not a supported feature and likely isn't something we will add any time soon. In general wake isn't a reflection heavy language and doesn't have plans to become one.

Aside: You should avoid using global as it is deprecated and will eventually be removed