X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FScript.hh;h=9e8827abc78d5c3fb254a379b5540b64626cee21;hp=05b9da972829b28b3cd378ad092914a809974b9c;hb=b357615aba1dbde81e3c6999366604e6001010a7;hpb=246d7d6e4386b686327163d621c7c8b398b7d479 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;