Cheng, Long wrote: > In current version of luajit ffi.* APIs do not have their C APIs. If > I want to use them in C code I have to lookup the function in ffi > global table and call it through lua_call. If luajit can provide the > c version of these APIs, it will allow shorter C code and also > better runtime performance. Mixing the FFI and the classic C API is not a good idea. You shouldn't ever need to deal with FFI types in the classic C API. Say, if you want to access an FFI struct, then declare a C function and call it via the FFI with the struct as an argument. The C function will receive a pointer to the struct. No wrapper code necessary. --Mike