Project names are not escaped when doing C codegen

What do you want to achieve?

I’d like my UI designer to be able to name things using periods and other characters not allowed as C identifiers or preprocessor macros.

What have you tried so far?

I tried compiling a C exported project named web.com, but it failed with a large number of compiler errors like so:

C:/Projects/WDC/main/ui/ui.h:6:15: warning: extra tokens at end of #ifndef directive
6 | #ifndef _WEB.COM.SCREENS_UI_H
| ^

Indeed ui.h is not preprocessable C:

// This file was generated by SquareLine Studio
// SquareLine Studio version: SquareLine Studio 1.3.2
// LVGL version: 8.3.6
// Project name: web.com.screens

#ifndef _WEB.COM.SCREENS_UI_H
#define _WEB.COM.SCREENS_UI_H

#ifdef __cplusplus
extern "C" {
#endif

  • **SquareLine Studio version: 1.3.2
  • **Operating system: Windows 11
  • Target hardware: ESP32 custom PCB

Thans for the feedback. The ‘.’ special character is not substituted in SLS-v1.3.3 with an escape sequence, indeed. Anyway, we advise to avoid special characters and spaces in project names. We’ll consider you request though.