You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
clang format apply
This commit is contained in:
@ -16,36 +16,37 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/******************************************************************************************
|
||||
* $Id: we_macro.h 33 2006-10-18 14:37:12Z wzhou $
|
||||
*
|
||||
******************************************************************************************/
|
||||
* $Id: we_macro.h 33 2006-10-18 14:37:12Z wzhou $
|
||||
*
|
||||
******************************************************************************************/
|
||||
/** @file */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <we_type.h>
|
||||
|
||||
|
||||
/** Namespace WriteEngine */
|
||||
namespace WriteEngine
|
||||
{
|
||||
#define RETURN_ON_ERROR( statement ) \
|
||||
{ int rcVal = (statement); \
|
||||
if( rcVal != NO_ERROR ) \
|
||||
return rcVal; }
|
||||
#define RETURN_ON_ERROR(statement) \
|
||||
{ \
|
||||
int rcVal = (statement); \
|
||||
if (rcVal != NO_ERROR) \
|
||||
return rcVal; \
|
||||
}
|
||||
|
||||
#define RETURN_ON_NULL( obj, rc ) \
|
||||
if( obj == NULL ) \
|
||||
return rc;
|
||||
#define RETURN_ON_NULL(obj, rc) \
|
||||
if (obj == NULL) \
|
||||
return rc;
|
||||
|
||||
#define RETURN_ON_WE_ERROR( oldRc, newRc ) \
|
||||
if( oldRc != NO_ERROR ) \
|
||||
return newRc;
|
||||
#define RETURN_ON_WE_ERROR(oldRc, newRc) \
|
||||
if (oldRc != NO_ERROR) \
|
||||
return newRc;
|
||||
|
||||
#define RETURN_RC( oldRc, newRc ) \
|
||||
if( oldRc != NO_ERROR ) \
|
||||
return newRc; \
|
||||
else \
|
||||
return NO_ERROR;
|
||||
#define RETURN_RC(oldRc, newRc) \
|
||||
if (oldRc != NO_ERROR) \
|
||||
return newRc; \
|
||||
else \
|
||||
return NO_ERROR;
|
||||
|
||||
} //end of namespace
|
||||
} // namespace WriteEngine
|
||||
|
Reference in New Issue
Block a user