Skip to content

Commit b062ca9

Browse files
committed
Get ggma_macro.h out of public header
1 parent 8c79d35 commit b062ca9

4 files changed

Lines changed: 7 additions & 17 deletions

File tree

runtime/ggma/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(GGMA_DEV ggma-dev)
88
add_library(${GGMA_DEV} SHARED ${API_SRC})
99

1010
# Public headers to publish
11-
set(GGMA_API_HEADERS include/ggma_api.h include/ggma_macro.h include/ggma_types.h
11+
set(GGMA_API_HEADERS include/ggma_api.h include/ggma_types.h
1212
include/ggma_context.h include/ggma_generate.h)
1313

1414
# GGMA install directory (same as ONERT_INSTALL_APIDIR)
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,11 @@
1717
#include <cstdlib>
1818

1919
/**
20-
* @file ggma_macro.h
20+
* @file Macro.h
2121
* @brief Common macros for GGMA error handling and utilities
2222
*/
23-
#ifndef __GGMA_GGMA_MACRO_H__
24-
#define __GGMA_GGMA_MACRO_H__
25-
26-
#define GGMA_ENSURE(a) \
27-
do \
28-
{ \
29-
if ((a) != GGMA_STATUS_NO_ERROR) \
30-
{ \
31-
exit(-1); \
32-
} \
33-
} while (0)
23+
#ifndef __GGMA_MACRO_H__
24+
#define __GGMA_MACRO_H__
3425

3526
#define GGMA_RETURN_ERROR_IF_NULL(p) \
3627
do \
@@ -41,4 +32,4 @@
4132

4233
#define GGMA_UNUSED(x) (void)(x)
4334

44-
#endif // __GGMA_GGMA_MACRO_H__
35+
#endif // __GGMA_MACRO_H__

runtime/ggma/src/ggma_context.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
#include "ggma_context.h"
18-
#include "ggma_macro.h"
1918
#include "Context.h"
2019
#include <iostream>
2120

runtime/ggma/src/ggma_generate.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "ggma_api.h"
18-
#include "ggma_macro.h"
17+
#include "ggma_generate.h"
1918

2019
#include "Context.h"
20+
#include "Macro.h"
2121

2222
GGMA_STATUS ggma_generate(ggma_context *context, ggma_token *tokens, size_t n_tokens,
2323
size_t n_tokens_max, size_t *n_tokens_out)

0 commit comments

Comments
 (0)