I had a working solution with a single function with the signature ‘string command_processor(string)’, to which I added a second parameter (int), which created the following sequence of SetArg calls:
app.asContext->SetArgObject(0, (void*) &message);
app.asContext->SetArgAddress(1, &format);
Now however I get an error when I execute the script:
---
(0, 0) : ERR : Failed in call to function 'Execute' (Code: asCONTEXT_NOT_PREPARED, -4)
---
When I comment out the ‘SetArgAddress’ line, it works again. I have also used setArgDWord, SetArgByte, etc. (without taking the address, obvs), but with the same result. ‘format’ is a uint8_t type on the C++ side.
Any clues as to what I'm doing wrong here would be most helpful.