update nonlinearcircuits; needs better fix for max macro#586
Conversation
|
@dromer I'm glad to see someone is bringing the NLC Sloth modules into Cardinal! As their author, please let me know if I can do anything to help. Hopefully it is a simple process. |
|
the use of the |
Would it help if I updated these to use |
|
hmm actually the issue is on the MockbaModular modules, that is where the macro comes from. so we should modify that part of the code. the NLC modules seem fine |
|
Yeah the issue is NOT with NLC but the conflict is introduced by Mockba over here: https://github.com/MockbaTheBorg/MockbaModular/blob/479d2c8007b2087cdf557a491df25c5b85784a96/src/MockbaModular.hpp#L31-L33 It just arises in NLC because its build is handled alphabetically and comes after Mockba ;) |
|
@dromer lets go for this, just one request: instead of "define max max" use "#undef max" right after the mockba includes, there is already a "#undef min" so just add it above this line. |
|
Hah yes indeed, totally missed that one :D |
|
thanks again! |
Builds, but not pretty "fix" for that macro definition.
Adds 5 new modules.
Problem without the macro is: