We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sanny produces invalid code when trying to pass element of short strings array to opcode.
{$CLEO .cs} {$USE debug} 0000: const msg_count = 10 end var $MESSAGE_LABELS : array msg_count of ShortString end 0@ = 0 // problem 1 0AD3: $MESSAGE_LABELS[0@] = string_format "put %s" 'LABEL' // ok //0AD3: $MESSAGE_LABELS[3] = string_format "put %s" 'LABEL' // error! output param compiled as DT_VAR type //0AD3: s$MESSAGE_LABELS[3] = string_format "put %s" 'LABEL' // walkaround // problem 2 cleo_call @FUNC args 1 $MESSAGE_LABELS[0@] // error! output param compiled as DT_LVAR type 0A93: terminate_this_custom_script // arg 0 - text :FUNC trace "FUNC arg %s" 0@ cleo_return
The text was updated successfully, but these errors were encountered:
// problem 2 cleo_call @FUNC args 1 $MESSAGE_LABELS[0@] // error! output param compiled as DT_LVAR type
@MiranDMC can you clarify more on what the problem is? The output in a compiled file has correct data type 0xC (global string array).
Sorry, something went wrong.
Hmm right. Seems CLEO's opcode 0AB1 handling is missing support for that type.
fixed in beta.0
No branches or pull requests
Sanny produces invalid code when trying to pass element of short strings array to opcode.
The text was updated successfully, but these errors were encountered: