You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 11:18:39 UTC

svn commit: r1132279 - /incubator/mesos/trunk/src/common/utils.hpp

Author: benh
Date: Sun Jun  5 09:18:38 2011
New Revision: 1132279

URL: http://svn.apache.org/viewvc?rev=1132279&view=rev
Log:
Oops, forgot to add new common/utils.hpp ... early commits will probaly be broken without this file.

Added:
    incubator/mesos/trunk/src/common/utils.hpp

Added: incubator/mesos/trunk/src/common/utils.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/common/utils.hpp?rev=1132279&view=auto
==============================================================================
--- incubator/mesos/trunk/src/common/utils.hpp (added)
+++ incubator/mesos/trunk/src/common/utils.hpp Sun Jun  5 09:18:38 2011
@@ -0,0 +1,10 @@
+#ifndef __UTILS_HPP__
+#define __UTILS_HPP__
+
+#define VA_NUM_ARGS_IMPL(_1, _2, _3, _4, _5, N, ...) N
+#define VA_NUM_ARGS(...) VA_NUM_ARGS_IMPL(__VA_ARGS__, 5, 4, 3, 2, 1)
+
+#define CONCAT_IMPL(A, B) A ## B
+#define CONCAT(A, B) CONCAT_IMPL(A, B)
+
+#endif // __UTILS_HPP__