google-protobuf 0.37.0-rc.3

Protocol Buffers - Google's data interchange format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Protocol Buffers - Google's data interchange format
// Copyright 2026 Google LLC.  All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

// Intentionally duplicated from `sys/test_helpers.rs`.

/// Force a compiler error if the passed in function is not linked.
macro_rules! assert_linked {
    ($($vals:tt)+) => {
        let _ = std::hint::black_box($($vals)+ as *const ());
    }
}

pub(crate) use assert_linked;