| 1 | /* |
| 2 | * Copyright 2008-2018 Aerospike, Inc. |
| 3 | * |
| 4 | * Portions may be licensed to Aerospike, Inc. under one or more contributor |
| 5 | * license agreements. |
| 6 | * |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 8 | * use this file except in compliance with the License. You may obtain a copy of |
| 9 | * the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | * License for the specific language governing permissions and limitations under |
| 15 | * the License. |
| 16 | */ |
| 17 | |
| 18 | #pragma once |
| 19 | |
| 20 | // |
| 21 | // logging |
| 22 | // |
| 23 | |
| 24 | #define LOG(fmt, ...) \ |
| 25 | // __log_append(__FILE__, __LINE__, fmt, ##__VA_ARGS__); |
| 26 | |
| 27 | void __log_append(const char * file, int line, const char * fmt, ...); |
| 28 | |
| 29 | #define DO_PRAGMA(x) _Pragma (#x) |
| 30 | #define TODO(x) DO_PRAGMA(message ("TODO - " #x)) |
| 31 | |