You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the header files have very common names like "platform.h" and "port.h". This is already causing problems when porting it to XMOS. Likely this will cause problems when integrating reactor-c with other libraries and projects. There seems to be two ways to solve this.
Renaming:
platform -> lf_platform, port -> lf_port etc.
Use paths (thanks Christian :))
We can move all the header files out of the "core" folder and into the "include" folder. We put them like this:
Then we put ~/include on the include path. This means that you have to do #include "reactor-c/platform.h" for all includes. I.e. you have to prepend reactor-c to all your includes. I think this latter solution is cleanest. We can at the same remove the symlink from include/core to core.
The text was updated successfully, but these errors were encountered:
Some of the header files have very common names like "platform.h" and "port.h". This is already causing problems when porting it to XMOS. Likely this will cause problems when integrating reactor-c with other libraries and projects. There seems to be two ways to solve this.
Renaming:
platform -> lf_platform, port -> lf_port etc.
Use paths (thanks Christian :))
We can move all the header files out of the "core" folder and into the "include" folder. We put them like this:
core
include
-- reactor-c
---- platform.h
---- port.h
---- platform
------ lf_arduino.h
Then we put ~/include on the include path. This means that you have to do #include "reactor-c/platform.h" for all includes. I.e. you have to prepend reactor-c to all your includes. I think this latter solution is cleanest. We can at the same remove the symlink from include/core to core.
The text was updated successfully, but these errors were encountered: