TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

posix compiler generates non-compilable code for @debug annotation of configuration #128

Closed vassik closed 8 years ago

vassik commented 8 years ago

Failure on compilation:

$ make
cc -O2 -w -c ClockLinux.c 
ClockLinux.c:34:35: error: expected ‘)’ before string constant
 ClockLinux_print_debug(_instance, " (ClockLinux): Start start_clock_process\n");
                                   ^
ClockLinux.c:35:35: error: expected ‘)’ before string constant
 ClockLinux_print_debug(_instance, " (ClockLinux): start_clock_process Done.\n");
                                   ^
make: *** [ClockLinux.o] Error 1

Sources are attached. Compile debug_failure_config.thingml in debug.zip to reproduce the issue

DebugFailureTest.zip debug.zip