Outputs a 32-character string which you may change in real-time during a debug or simulation session
tweak-string-32
@/tweak-string-32
Outputs a 32-character string which you may change in real-time during a debug or simulation session
OUTstring
C++ implementation
struct State {
char buff[33]; // 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));
}