Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tweak-strings compile for esp8266 boards #1902

Merged
merged 1 commit into from Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions workspace/__lib__/xod/debug/tweak-string-128/patch.cpp
@@ -1,6 +1,6 @@

struct State {
char buff[129] = ""; // one extra for the '\0'
char buff[129]; // one extra for the '\0'
CStringView view;

State() : view(buff) {}
Expand All @@ -14,7 +14,7 @@ void evaluate(Context ctx) {
// Additional code that sets value of `buff`
// is injected in detail::handleTweaks

// don't emit on startup to prevent overwriting value
// don't emit on startup to prevent overwriting value
// that was initially bound (which is stored in the global autogenerated CString)
if (!isSettingUp()) {
emitValue<output_OUT>(ctx, XString(&state->view));
Expand Down
4 changes: 2 additions & 2 deletions workspace/__lib__/xod/debug/tweak-string-16/patch.cpp
@@ -1,6 +1,6 @@

struct State {
char buff[17] = ""; // one extra for the '\0'
char buff[17]; // one extra for the '\0'
CStringView view;

State() : view(buff) {}
Expand All @@ -14,7 +14,7 @@ void evaluate(Context ctx) {
// Additional code that sets value of `buff`
// is injected in detail::handleTweaks

// don't emit on startup to prevent overwriting value
// don't emit on startup to prevent overwriting value
// that was initially bound (which is stored in the global autogenerated CString)
if (!isSettingUp()) {
emitValue<output_OUT>(ctx, XString(&state->view));
Expand Down
4 changes: 2 additions & 2 deletions workspace/__lib__/xod/debug/tweak-string-32/patch.cpp
@@ -1,6 +1,6 @@

struct State {
char buff[33] = ""; // one extra for the '\0'
char buff[33]; // one extra for the '\0'
CStringView view;

State() : view(buff) {}
Expand All @@ -14,7 +14,7 @@ void evaluate(Context ctx) {
// Additional code that sets value of `buff`
// is injected in detail::handleTweaks

// don't emit on startup to prevent overwriting value
// don't emit on startup to prevent overwriting value
// that was initially bound (which is stored in the global autogenerated CString)
if (!isSettingUp()) {
emitValue<output_OUT>(ctx, XString(&state->view));
Expand Down
4 changes: 2 additions & 2 deletions workspace/__lib__/xod/debug/tweak-string-64/patch.cpp
@@ -1,6 +1,6 @@

struct State {
char buff[65] = ""; // one extra for the '\0'
char buff[65]; // one extra for the '\0'
CStringView view;

State() : view(buff) {}
Expand All @@ -14,7 +14,7 @@ void evaluate(Context ctx) {
// Additional code that sets value of `buff`
// is injected in detail::handleTweaks

// don't emit on startup to prevent overwriting value
// don't emit on startup to prevent overwriting value
// that was initially bound (which is stored in the global autogenerated CString)
if (!isSettingUp()) {
emitValue<output_OUT>(ctx, XString(&state->view));
Expand Down