blob: 41d80e0a0dd3af8ccdcdb324f5e6fc141b7f2a04 [file] [log] [blame]
// Copyright 2024 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_LD_TEST_MODULES_INIT_FINI_TEST_H_
#define LIB_LD_TEST_MODULES_INIT_FINI_TEST_H_
#include "startup-symbols.h"
// This header defines the `Callback` wrapper called by init/fini functions
// in generated init-fini-array-*.cc tests. The Callback is called with the
// given identity value when an init/fini function is run.
inline void Callback(int id) {
if (gTestCallback) {
gTestCallback->Callback(id);
}
}
#endif // LIB_LD_TEST_MODULES_INIT_FINI_TEST_H_