From 19a144f9f4be209b1e6d7480480b81c6e4a1dccc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 2 Mar 2014 08:59:03 +0000 Subject: Add convenience macro for testing commands that return errors. --- lib/server/makeprotocol.pl.in | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/server') diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in index f90b5474..e02ac74c 100755 --- a/lib/server/makeprotocol.pl.in +++ b/lib/server/makeprotocol.pl.in @@ -532,6 +532,7 @@ public: virtual ~$client_server_base_class(); virtual std::auto_ptr ReceiveStream() = 0; bool GetLastError(int &rTypeOut, int &rSubTypeOut); + int GetLastErrorType() { return mLastErrorSubType; } protected: void SetLastError(int Type, int SubType) -- cgit v1.2.3