I have defined a function in the Function editor, saved it, then tried to compile, and I get a compile error:
FUNC void FooBar (void) { printf("foobar"); } ^ *** error 10, line 3: Syntax error *** Function creation aborted due to syntax errors
FUNC void FooBar (void) { printf("foobar"); }
When I went back and exited the debugger, made a code change in my project source, re-compiled, then went back to the debugger and tried to compile the debug function, it compiled and ran fine. Maybe there's a weird workflow issue I need to figure out.
Nik; The problem is no line fed-carriage return after the last line of code. This simple editor looks for LF/CR as the end of line delimiter. While it looks like C code, it really is a script file that is interpreted after each line just as if you typed the line in the command line. So, you must end each line with CR/LF. You cannot have line continuation as in the C language.