X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FScript.hh;h=9e8827abc78d5c3fb254a379b5540b64626cee21;hp=05b9da972829b28b3cd378ad092914a809974b9c;hb=3f6e44698c38b74bb622ad81ea9d2daa636981d2;hpb=7f3984f3f9524f5b6813e01ceb2fe576dadff94e diff --git a/src/Moof/Script.hh b/src/Moof/Script.hh index 05b9da9..9e8827a 100644 --- a/src/Moof/Script.hh +++ b/src/Moof/Script.hh @@ -789,7 +789,7 @@ public: * is any number of return values, depending on the callee). */ - Result call(int nargs, int nresults = LUA_MULTRET) + Result call(int nargs = 0, int nresults = LUA_MULTRET) { return (Result)lua_pcall(mState, nargs, nresults, 0); } @@ -916,8 +916,7 @@ inline std::ostream& operator << (std::ostream& stream, } else { - stream << slot.getTypeName() - << " (" << slot.getIdentifier() << ")" << std::endl; + stream << slot.getTypeName() << " (" << slot.getIdentifier() << ")"; } return stream;