author | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年05月06日 11:09:37 +0000 |
---|---|---|
committer | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年05月06日 11:09:37 +0000 |
commit | 5ae84d58e467babe55849713faff2cc5d28f91e4 (patch) | |
tree | 47122166910745622a1fbe605cc9f067f9cd971b /jitplus/jit-plus-function.cpp | |
parent | f7741f514ce6c2e50a1b9dd8445a3274b92e1ec7 (diff) | |
download | libjit-5ae84d58e467babe55849713faff2cc5d28f91e4.tar.gz |
-rw-r--r-- | jitplus/jit-plus-function.cpp | 9 |
diff --git a/jitplus/jit-plus-function.cpp b/jitplus/jit-plus-function.cpp index 4adee3c..9b64830 100644 --- a/jitplus/jit-plus-function.cpp +++ b/jitplus/jit-plus-function.cpp @@ -637,6 +637,7 @@ jit_value jit_function::get_struct_pointer() * @deftypemethodx jit_function jit_value insn_import (jit_value value) * @deftypemethodx jit_function void insn_return ({const jit_value&} value) * @deftypemethodx jit_function void insn_return () + * @deftypemethodx jit_function void insn_return_ptr ({const jit_value&} value, jit_type_t type) * @deftypemethodx jit_function void insn_default_return () * @deftypemethodx jit_function void insn_throw ({const jit_value&} value) * @deftypemethodx jit_function jit_value insn_get_call_stack () @@ -1130,6 +1131,14 @@ void jit_function::insn_return() } } +void jit_function::insn_return_ptr(const jit_value& value, jit_type_t type) +{ + if(!jit_insn_return_ptr(func, value.raw(), type)) + { + out_of_memory(); + } +} + void jit_function::insn_default_return() { if(!jit_insn_default_return(func)) |