2019-10-08 17:48:32 -07:00
|
|
|
/*
|
2021-12-30 15:08:43 -08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2019-10-08 17:48:32 -07:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2019-10-08 17:48:32 -07:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2019-10-08 17:48:32 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
|
|
|
|
#ifdef __ANDROID__
|
|
|
|
#include <android/log.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __ANDROID__
|
|
|
|
#define VANILLAJNI_LOG_ERROR(tag, format, ...) \
|
|
|
|
__android_log_print(ANDROID_LOG_ERROR, tag, format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define VANILLAJNI_LOG_ERROR(tag, format, ...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define VANILLAJNI_DIE() std::abort()
|