/* * Copyright (c) 2019 TAOS Data, Inc. * * This program is free software: you can use, redistribute, and/or modify * it under the terms of the GNU Affero General Public License, version 3 * or later ("AGPL"), as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ #ifndef TDENGINE_VIRTUALTABLESCAN_H #define TDENGINE_VIRTUALTABLESCAN_H #ifdef __cplusplus extern "C" { #endif #include "executorInt.h" #include "operator.h" #define VTS_ERR_RET(c) \ do { \ int32_t _code = (c); \ if (_code != TSDB_CODE_SUCCESS) { \ terrno = _code; \ return _code; \ } \ } while (0) #define VTS_ERR_JRET(c) \ do { \ code = (c); \ if (code != TSDB_CODE_SUCCESS) { \ terrno = code; \ goto _return; \ } \ } while (0) #ifdef __cplusplus } #endif #endif // TDENGINE_VIRTUALTABLESCAN_H