Solved
Defined symbol no take value
Hi i have defined a Defined symbol "COST=3" in setting compiler like this

stm32cube color fine the code but during execution it is like if COST=0
you can watch the execution cursor are on the #else (and numBB are = 0)
How can i fix it?