From e9df473163280a253ce0773282101079944c367b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 29 Jun 2005 00:59:05 +0000 Subject: [PATCH] supports suspending functions SVN-Revision: 2651 --- tools/miniswig/create_wrapper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index 7ac2e92d7..7adce5d7c 100644 --- a/tools/miniswig/create_wrapper.cpp +++ b/tools/miniswig/create_wrapper.cpp @@ -192,7 +192,11 @@ WrapperCreator::create_function_wrapper(Class* _class, Function* function) out << ind << "\n"; // push return value back on stack and return if(function->return_type.is_void()) { - out << ind << "return 0;\n"; + if(function->docu_comment.find("@SUSPEND@") != std::string::npos) { + out << ind << "sq_suspendvm(v);\n"; + } else { + out << ind << "return 0;\n"; + } } else { push_to_stack(function->return_type, "return_value"); out << ind << "return 1;\n"; -- 2.11.0