From bc7e973f482a88e585291acf592130fd4c5a9eb3 Mon Sep 17 00:00:00 2001 From: ykiko Date: Wed, 29 May 2024 21:11:53 +0800 Subject: [PATCH] fix. --- .gitignore | 2 +- include/pocketpy/vm.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 444b5140..e4db4f86 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ __pycache__/ .DS_Store .coverage .idea -.cache/ +.cache/clangd/ gmon.out gprof.txt diff --git a/include/pocketpy/vm.h b/include/pocketpy/vm.h index cfa7ff4a..84ea145c 100644 --- a/include/pocketpy/vm.h +++ b/include/pocketpy/vm.h @@ -484,12 +484,12 @@ public: void __prepare_py_call(PyVar*, ArgsView, ArgsView, const FuncDecl_&); void __unpack_as_list(ArgsView args, List& list); void __unpack_as_dict(ArgsView args, Dict& dict); - void __raise_exc(bool re_raise=false); + [[noreturn]] void __raise_exc(bool re_raise=false); void __init_builtin_types(); void __post_init_builtin_types(); - void __builtin_error(StrName type); - void __builtin_error(StrName type, PyVar arg); - void __builtin_error(StrName type, const Str& msg); + [[noreturn]] void __builtin_error(StrName type); + [[noreturn]] void __builtin_error(StrName type, PyVar arg); + [[noreturn]] void __builtin_error(StrName type, const Str& msg); void __push_varargs(){} void __push_varargs(PyVar _0){ PUSH(_0); } void __push_varargs(PyVar _0, PyVar _1){ PUSH(_0); PUSH(_1); }