Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/* instance returned from this function */ \
static serialization::binary_filter* call() \
{ \
return hpx::create_binary_filter( \
return ::hpx::create_binary_filter( \
"bzip2_serialization_filter", true); \
} \
}; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/* instance returned from this function */ \
static serialization::binary_filter* call() \
{ \
return hpx::create_binary_filter( \
return ::hpx::create_binary_filter( \
"snappy_serialization_filter", true); \
} \
}; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/* instance returned from this function */ \
static serialization::binary_filter* call() \
{ \
return hpx::create_binary_filter( \
return ::hpx::create_binary_filter( \
"zlib_serialization_filter", true); \
} \
}; \
Expand Down
4 changes: 2 additions & 2 deletions libs/core/assertion/include/hpx/assertion/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
(!!(expr) ? void() : \
::hpx::assertion::detail::handle_assert( \
HPX_CURRENT_SOURCE_LOCATION(), HPX_PP_STRINGIZE(expr), \
hpx::util::format(__VA_ARGS__))) /**/
::hpx::util::format(__VA_ARGS__))) /**/

#define HPX_ASSERT_LOCKED_(l, expr, ...) \
(!!(expr) ? void() : \
((l).unlock(), \
::hpx::assertion::detail::handle_assert( \
HPX_CURRENT_SOURCE_LOCATION(), HPX_PP_STRINGIZE(expr), \
hpx::util::format(__VA_ARGS__)))) /**/
::hpx::util::format(__VA_ARGS__)))) /**/

#if defined(HPX_DEBUG)
#if defined(HPX_COMPUTE_DEVICE_CODE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,21 @@ namespace hpx::threads::coroutines::detail ::posix::pth {
#define HPX_COROUTINE_POSIX_IMPL "Pth implementation"
#define HPX_COROUTINE_DECLARE_CONTEXT(name) pth_uctx_t name
#define HPX_COROUTINE_CREATE_CONTEXT(ctx) \
hpx::threads::coroutines::detail::posix::pth::check_( \
::hpx::threads::coroutines::detail::posix::pth::check_( \
pth_uctx_create(&(ctx)))
#define HPX_COROUTINE_MAKE_CONTEXT( \
ctx, stack, size, startfunc, startarg, exitto) \
/* const sigset_t* sigmask = nullptr: we don't expect per-context */ \
/* signal masks */ \
hpx::threads::coroutines::detail::posix::pth::check_( \
::hpx::threads::coroutines::detail::posix::pth::check_( \
pth_uctx_make(*(ctx), static_cast<char*>(stack), (size), nullptr, \
(startfunc), (startarg), (exitto)))
#define HPX_COROUTINE_SWAP_CONTEXT(from, to) \
hpx::threads::coroutines::detail::posix::pth::check_(pth_uctx_switch( \
*(from), *(to))) #define HPX_COROUTINE_DESTROY_CONTEXT(ctx) \
hpx::threads::coroutines::detail::posix::pth::check_( \
pth_uctx_destroy(ctx))
::hpx::threads::coroutines::detail::posix::pth::check_( \
pth_uctx_switch(*(from), *(to)))
#define HPX_COROUTINE_DESTROY_CONTEXT(ctx) \
::hpx::threads::coroutines::detail::posix::pth::check_( \
pth_uctx_destroy(ctx))

#else // generic Posix platform (e.g. OS X >= 10.5)

Expand Down Expand Up @@ -158,7 +159,7 @@ namespace hpx::threads::coroutines::detail::posix::ucontext {
#define HPX_COROUTINE_CREATE_CONTEXT(ctx) /* nop */
#define HPX_COROUTINE_MAKE_CONTEXT( \
ctx, stack, size, startfunc, startarg, exitto) \
hpx::threads::coroutines::detail::posix::ucontext::make_context( \
::hpx::threads::coroutines::detail::posix::ucontext::make_context( \
ctx, stack, size, startfunc, startarg, exitto)
#define HPX_COROUTINE_SWAP_CONTEXT(pfrom, pto) ::swapcontext((pfrom), (pto))
#define HPX_COROUTINE_DESTROY_CONTEXT(ctx) /* nop */
Expand Down
26 changes: 13 additions & 13 deletions libs/core/errors/include/hpx/errors/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
// helper macro allowing to prepend file name and line number to a generated
// exception
#define HPX_THROW_STD_EXCEPTION(except, func) \
hpx::detail::throw_exception(except, func, __FILE__, __LINE__) /**/
::hpx::detail::throw_exception(except, func, __FILE__, __LINE__) /**/

#define HPX_RETHROW_EXCEPTION(e, f) hpx::detail::rethrow_exception(e, f) /**/
#define HPX_RETHROW_EXCEPTION(e, f) ::hpx::detail::rethrow_exception(e, f) /**/

#define HPX_RETHROWS_IF(ec, e, f) hpx::detail::rethrows_if(ec, e, f) /**/
#define HPX_RETHROWS_IF(ec, e, f) ::hpx::detail::rethrows_if(ec, e, f) /**/

///////////////////////////////////////////////////////////////////////////////
#define HPX_GET_EXCEPTION(...) \
Expand All @@ -39,10 +39,10 @@
__VA_ARGS__)) \
/**/
#define HPX_GET_EXCEPTION_3(errcode, f, msg) \
HPX_GET_EXCEPTION_4(errcode, hpx::throwmode::plain, f, msg) \
HPX_GET_EXCEPTION_4(errcode, ::hpx::throwmode::plain, f, msg) \
/**/
#define HPX_GET_EXCEPTION_4(errcode, mode, f, msg) \
hpx::detail::get_exception(errcode, msg, mode, f, __FILE__, __LINE__) /**/
::hpx::detail::get_exception(errcode, msg, mode, f, __FILE__, __LINE__) /**/

///////////////////////////////////////////////////////////////////////////////
#define HPX_THROW_IN_CURRENT_FUNC(errcode, msg) \
Expand All @@ -64,7 +64,7 @@

///////////////////////////////////////////////////////////////////////////////
#define HPX_THROW_THREAD_INTERRUPTED_EXCEPTION() \
hpx::detail::throw_thread_interrupted_exception() /**/
::hpx::detail::throw_thread_interrupted_exception() /**/
/// \endcond

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -97,8 +97,8 @@
/// \endcode
///
#define HPX_THROW_EXCEPTION(errcode, f, ...) \
hpx::detail::throw_exception( \
errcode, hpx::util::format(__VA_ARGS__), f, __FILE__, __LINE__) /**/
::hpx::detail::throw_exception( \
errcode, ::hpx::util::format(__VA_ARGS__), f, __FILE__, __LINE__) /**/

///////////////////////////////////////////////////////////////////////////////
/// \def HPX_THROW_EXCEPTION_MODE(errcode, throwmode, f, msg)
Expand Down Expand Up @@ -129,8 +129,8 @@
/// \endcode
///
#define HPX_THROW_EXCEPTION_MODE(errcode, mode, f, ...) \
hpx::detail::throw_exception(errcode, hpx::util::format(__VA_ARGS__), f, \
__FILE__, __LINE__, mode) /**/
::hpx::detail::throw_exception(errcode, ::hpx::util::format(__VA_ARGS__), \
f, __FILE__, __LINE__, mode) /**/

///////////////////////////////////////////////////////////////////////////////
/// \def HPX_THROW_BAD_ALLOC(f, msg)
Expand Down Expand Up @@ -161,7 +161,7 @@
/// \endcode
///
#define HPX_THROW_BAD_ALLOC(f) \
hpx::detail::throw_bad_alloc_exception(f, __FILE__, __LINE__) /**/
::hpx::detail::throw_bad_alloc_exception(f, __FILE__, __LINE__) /**/

/// \def HPX_THROWS_IF(ec, errcode, f, msg)
/// \brief Either throw a hpx::exception or initialize \a hpx::error_code from
Expand All @@ -179,7 +179,7 @@
/// holds the error message the new exception should encapsulate.
///
#define HPX_THROWS_IF(ec, errcode, f, ...) \
hpx::detail::throws_if(ec, errcode, hpx::util::format(__VA_ARGS__), f, \
::hpx::detail::throws_if(ec, errcode, ::hpx::util::format(__VA_ARGS__), f, \
__FILE__, __LINE__) /**/

/// \def HPX_THROWS_BAD_ALLOC_IF(ec, f)
Expand All @@ -193,7 +193,7 @@
/// instance \p ec is initialized instead.
///
#define HPX_THROWS_BAD_ALLOC_IF(ec, f) \
hpx::detail::throws_bad_alloc_if(ec, f, __FILE__, __LINE__) /**/
::hpx::detail::throws_bad_alloc_if(ec, f, __FILE__, __LINE__) /**/

////////////////////////////////////////////////////////////////////////////////
// From hpx/errors/define_error_info.hpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ namespace hpx::parallel::detail {
#define HPX_TASK_SIZE_BUILTIN_OPERATION(op) \
template <> \
struct hpx::traits::is_transparent_builtin_operation< \
hpx::parallel::detail::op> : std::true_type \
::hpx::parallel::detail::op> : std::true_type \
{ \
} /**/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,8 @@ namespace hpx::execution::experimental::detail {
#define HPX_STATIC_ASSERT_ON_PARAMETERS_AMBIGUITY(func) \
static_assert( \
parameters_type_counter< \
HPX_PP_CAT(hpx::execution::experimental::detail::has_, func) < \
hpx::util::decay_unwrap_t<Params>>::value... > ::value <= 1, \
HPX_PP_CAT(::hpx::execution::experimental::detail::has_, func) < \
::hpx::util::decay_unwrap_t<Params>>::value... > ::value <= 1, \
"Passing more than one executor parameters type " \
"exposing " HPX_PP_STRINGIZE(func) " is not possible") /**/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ namespace hpx::parallel::execution {
name) " is deprecated, use " \
"hpx::execution::experimental::" HPX_PP_STRINGIZE( \
name) " instead") = \
hpx::execution::experimental::name<T, Enable> /**/
::hpx::execution::experimental::name<T, Enable> /**/

HPX_IS_EXECUTOR_DEPRECATED(is_one_way_executor);
HPX_IS_EXECUTOR_DEPRECATED(is_never_blocking_one_way_executor);
Expand Down
2 changes: 1 addition & 1 deletion libs/core/futures/include/hpx/futures/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

// from hpx/futures/future.hpp
#define HPX_MAKE_EXCEPTIONAL_FUTURE(T, errorcode, f, msg) \
hpx::make_exceptional_future<T>(HPX_GET_EXCEPTION(errorcode, f, msg)) /**/
::hpx::make_exceptional_future<T>(HPX_GET_EXCEPTION(errorcode, f, msg)) /**/
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ namespace hpx::util {
typename Pointer1, typename Derived2, typename T2, typename Category2, \
typename Reference2, typename Distance2, typename Pointer2> \
HPX_HOST_DEVICE prefix \
typename hpx::util::detail::enable_operator_equal_interoperable< \
typename ::hpx::util::detail::enable_operator_equal_interoperable< \
Derived1, Derived2, result_type>::type \
operator op(iterator_facade<Derived1, T1, Category1, Reference1, \
Distance1, Pointer1> const& lhs, \
Expand All @@ -674,8 +674,8 @@ namespace hpx::util {
typename Pointer1, typename Derived2, typename T2, typename Category2, \
typename Reference2, typename Distance2, typename Pointer2> \
HPX_HOST_DEVICE prefix \
typename hpx::util::detail::enable_operator_interoperable_ex<Derived1, \
Derived2, result_type, \
typename ::hpx::util::detail::enable_operator_interoperable_ex< \
Derived1, Derived2, result_type, \
cond<typename Derived1::iterator_category, \
typename Derived2::iterator_category>>::type \
operator op(iterator_facade<Derived1, T1, Category1, Reference1, \
Expand Down
2 changes: 1 addition & 1 deletion libs/core/logging/include/hpx/logging/detail/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ HPX_DEFINE_LOG(g_l, logger_type)
::hpx::util::logging::logger* HPX_PP_CAT(NAME, _logger)() \
{ \
static ::hpx::util::logging::logger l( \
hpx::util::logging::level::LEVEL); \
::hpx::util::logging::level::LEVEL); \
return &l; \
}

Expand Down
Loading
Loading