Get basic compilation working in Dynamic Pascal. - libjit.git - libjit

index : libjit.git
libjit
summary refs log tree commit diff
path: root/jitplus/jit-plus-function.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rweather@southern-storm.com.au>2004年05月06日 11:09:37 +0000
committerRhys Weatherley <rweather@southern-storm.com.au>2004年05月06日 11:09:37 +0000
commit5ae84d58e467babe55849713faff2cc5d28f91e4 (patch)
tree47122166910745622a1fbe605cc9f067f9cd971b /jitplus/jit-plus-function.cpp
parentf7741f514ce6c2e50a1b9dd8445a3274b92e1ec7 (diff)
downloadlibjit-5ae84d58e467babe55849713faff2cc5d28f91e4.tar.gz
Get basic compilation working in Dynamic Pascal.
Diffstat (limited to 'jitplus/jit-plus-function.cpp')
-rw-r--r--jitplus/jit-plus-function.cpp 9
1 files changed, 9 insertions, 0 deletions
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))
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月11日 17:00:22 +0000

AltStyle によって変換されたページ (->オリジナル) /