tweak-string-64

xod/debug/tweak-string-64

Outputs a 64-character string which you may change in real-time during a debug or simulation session
tweak-string-64
@/tweak-string-64
Outputs a 64-character string which you may change in real-time during a debug or simulation session
tweak-string-64
OUT
OUTstring

C++ implementation

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

    State() : view(buff) {}
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    auto state = getState(ctx);

    // Additional code that sets value of `buff`
    // is injected in detail::handleTweaks

    emitValue<output_OUT>(ctx, XString(&state->view));
}