Skip to content
Snippets Groups Projects
Commit 8e0f749a authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Remove exceptions from src/box/func.cc

Mixing C-style error handling and C++ exceptions can lead to
serious problems.

In context of #910
parent 5a2f552e
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ add_library(box STATIC
vy_log.c
vy_upsert.c
space.cc
func.cc
func.c
alter.cc
schema.cc
session.cc
......
......@@ -33,7 +33,6 @@
#include <dlfcn.h>
#include "lua/utils.h"
#include "scoped_guard.h"
/**
* Parsed symbol and package names.
......
......@@ -61,9 +61,6 @@ struct func {
struct access access[BOX_USER_MAX];
};
#if defined(__cplusplus)
} /* extern "C" */
struct func *
func_new(struct func_def *def);
......@@ -80,6 +77,9 @@ int
func_call(struct func *func, box_function_ctx_t *ctx, const char *args,
const char *args_end);
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
#endif /* TARANTOOL_BOX_FUNC_H_INCLUDED */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment