Marco
Marco
Anfängerfehler :)
Something like: ``` #define ASSERT_IF_NOT_EQUAL(a, b) char compile_time_assert[((a) == (b)) ? 1 : -1]; ASSERT_IF_NOT_EQUAL (sizeof(serial)/sizeof(char), 11); ``` The trick is to create an array of negative size. Untested as...
If you name the array `serial_is_not_10_characters` it gets pretty obvious in the compiler error message.
I have created a LXC for Homer using the same script. For me it is working fine, I edit the file `/opt/homer/assets/config.yml` and reload the Homer website.