1/*******************************************************************************
2 Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
3 The use of this software is governed by the LICENSE file.
4*******************************************************************************/
5
6#include "taichi/python/exception.h"
7
8namespace taichi {
9
10void raise_assertion_failure_in_python(const std::string &msg) {
11 throw ExceptionForPython(msg);
12}
13
14} // namespace taichi
15
16void taichi_raise_assertion_failure_in_python(const char *msg) {
17 taichi::raise_assertion_failure_in_python(std::string(msg));
18}
19