I’ve been working on tests for my project and have come unstuck trying to test a function that uses one of the auto-created getters and setters that are created as part of the build.
The place I’m stuck is when including the file mgos_config.c
which is auto-generated as part of the build and contains the getters and setters.
../deps/modules/mongoose-os/src/mgos_sys_config.c: In function ‘mgos_sys_config_init’:
../deps/modules/mongoose-os/src/mgos_sys_config.c:334:43: error: ‘MGOS_APP’ undeclared (first use in this function)
334 | mgos_ro_vars_set_app(&mgos_sys_ro_vars, MGOS_APP);
| ^~~~~~~~
../deps/modules/mongoose-os/src/mgos_sys_config.c:334:43: note: each undeclared identifier is reported only once for each function it appears in
My guess is MGOS_APP
and FW_ARCHITECTURE
are maybe defined during the build/generation process but I’ve not been able to find them as yet. Any help would be appreciated.