zeromq / zproto

A protocol framework for ZeroMQ
MIT License
237 stars 100 forks source link

Problem: codec API file not regenerated after make code #395

Closed vyskocilm closed 6 years ago

vyskocilm commented 6 years ago

Solution: change condition to be more explicit what we want to :)

jimklimov commented 6 years ago

Do I read it correctly that it returns the value of switches.private if defined or (newly) 0 otherwise - and compares the result to 1??

If so, nice find regarding gsl syntax nuance, can simplify a lot of other code (e.g. jenkinsfile generator in zproject) ;)

vyskocilm commented 6 years ago

@jimklimov yes, see https://github.com/zeromq/gsl#expressions - actually for someone knowing rpm spec file synatx, this is quite readable form :-)