blob: 2575d5b79b1b47ada40061dbdd991e8de9dd251d [file] [log] [blame]
Evgenii Stepanov68ecec12017-01-31 13:19:30 -08001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Elliott Hughes611019b2024-02-16 00:32:46 +000017#pragma once
18
19// Tests proper can use libbase, but libraries for testing dlopen()
20// should probably avoid dependencies other than ones we're specifically
21// trying to test.
Evgenii Stepanov68ecec12017-01-31 13:19:30 -080022
Elliott Hugheseb04ed52017-03-29 13:48:02 -070023#include <assert.h>
Evgenii Stepanov68ecec12017-01-31 13:19:30 -080024
Elliott Hugheseb04ed52017-03-29 13:48:02 -070025#define CHECK(e) \
Elliott Hughes611019b2024-02-16 00:32:46 +000026 ((e) ? static_cast<void>(0) : __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, #e))