Hi,<br><br>the official DBusPlugin source file defines argumentsAddInt16toIter() as<br><br><pre style="font-family:courier new,monospace">static sqInt argumentsAddInt16toIter(sqInt oop, DBusMessageIter*iter) {
        dbus_int16_t intArg;
        if (!((oop & 1))) {
                msg("Oop is no integer value");
                return interpreterProxy->primitiveFail();
        }
        intArg = (oop >> 1);
        if (!(dbus_message_iter_append_basic(iter, DBUS_TYPE_INT16, &intArg))) {
                msg("Can not add Int16 argument.");
                return interpreterProxy->primitiveFail();
        }
}</pre><br>        however, if I generate the sources using VMMaker, I get<br><br><font face="courier new,monospace">static void<br>argumentsAddInt16toIter(sqInt oop, DBusMessageIter*iter)<br>{<br> dbus_int16_t intArg;<br><br>
if (!((oop & 1))) {<br> msg("Oop is no integer value");<br> interpreterProxy->primitiveFail(); return;<br> }<br> intArg = interpreterProxy->integerValueOf(oop);<br> if (!(dbus_message_iter_append_basic(iter, DBUS_TYPE_INT16, &intArg))) {<br>
msg("Can not add Int16 argument.");<br> interpreterProxy->primitiveFail(); return;<br> }<br>}</font><br><br><br>The implementation and signature are different which makes the use of this function not compile anymore:<br>
<br><pre style="font-family:courier new,monospace">[...]<br>_return_value = argumentsAddInt16toIter(arg, iter);
if (interpreterProxy->failed()) {
        return null;
}
interpreterProxy->popthenPush(3, _return_value);<br>[...]<br></pre><br>How can I change this code so that it works with the generated definition of argumentsAddInt16toIter()?<br><br>Thank you<br><br>--<br>Damien Cassou<br>
<a href="http://damiencassou.seasidehosting.st">http://damiencassou.seasidehosting.st</a><br><br>"Lambdas are relegated to relative obscurity until Java makes them popular<br>by not having them." James Iry