diff options
author | Mike Pall <mike> | 2011-10-27 01:52:37 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-10-27 01:57:30 +0200 |
commit | 2dc574d06bc6e828109a3bffa975592f9417434c (patch) | |
tree | 1239baece908e2390eb378e6d7d8063825926f9b /src/lj_ccall.h | |
parent | 1d190c99a2547b44deb8f5e483452d9f51925fb2 (diff) | |
download | luajit-2dc574d06bc6e828109a3bffa975592f9417434c.tar.gz luajit-2dc574d06bc6e828109a3bffa975592f9417434c.tar.bz2 luajit-2dc574d06bc6e828109a3bffa975592f9417434c.zip |
FFI: Compile calls to stdcall, fastcall and vararg functions.
Diffstat (limited to 'src/lj_ccall.h')
-rw-r--r-- | src/lj_ccall.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_ccall.h b/src/lj_ccall.h index d9b1e42c..890f665d 100644 --- a/src/lj_ccall.h +++ b/src/lj_ccall.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define _LJ_CCALL_H | 7 | #define _LJ_CCALL_H |
8 | 8 | ||
9 | #include "lj_obj.h" | 9 | #include "lj_obj.h" |
10 | #include "lj_ctype.h" | ||
10 | 11 | ||
11 | #if LJ_HASFFI | 12 | #if LJ_HASFFI |
12 | 13 | ||
@@ -129,6 +130,8 @@ typedef struct CCallState { | |||
129 | 130 | ||
130 | /* Really belongs to lj_vm.h. */ | 131 | /* Really belongs to lj_vm.h. */ |
131 | LJ_ASMF void LJ_FASTCALL lj_vm_ffi_call(CCallState *cc); | 132 | LJ_ASMF void LJ_FASTCALL lj_vm_ffi_call(CCallState *cc); |
133 | |||
134 | LJ_FUNC CTypeID lj_ccall_ctid_vararg(CTState *cts, cTValue *o); | ||
132 | LJ_FUNC int lj_ccall_func(lua_State *L, GCcdata *cd); | 135 | LJ_FUNC int lj_ccall_func(lua_State *L, GCcdata *cd); |
133 | 136 | ||
134 | #endif | 137 | #endif |