mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1132279 - /incubator/mesos/trunk/src/common/utils.hpp
Date Sun, 05 Jun 2011 09:18:39 GMT
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__



Mime
View raw message