// Copyright 2015 The Chromium 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 MINIBIND_COMMON_H_ #include #include #include //#define ALOG(...) __android_log_print(ANDROID_LOG_WARN, "minibind", __VA_ARGS__) #define ALOG(...) printf(__VA_ARGS__); putc('\n', stdout) #define AERR(msg) ALOG(msg ": %s", strerror(errno)) #define CHECK(cond) if (!(cond)) { ALOG("ASSERTION FAILURE: %s @ %s:%d", #cond, __FILE__, __LINE__ ); abort(); } #define BINDER_VM_SIZE ((1*1024*1024) - (4096 *2)) #define DISALLOW_COPY_AND_ASSIGN(cls) cls(const cls&) = delete #endif // MINIBIND_COMMON_H_