From 4358675379c25d444791ebb9acbeb76cf8bd5684 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 21 Jan 2018 23:08:24 +0330 Subject: xobj handling for int types and pointers is done.next is structs,unoins and adding docs. you can try running demo1.lua under lua-scripts for a demo --- bruiser/lua-scripts/demo1.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bruiser/lua-scripts') diff --git a/bruiser/lua-scripts/demo1.lua b/bruiser/lua-scripts/demo1.lua index 0bf26f6..c5c9d27 100644 --- a/bruiser/lua-scripts/demo1.lua +++ b/bruiser/lua-scripts/demo1.lua @@ -120,6 +120,13 @@ end -- registration_name() -- end of @placeholder +-- start of @placeholder +-- C--args = argc, arg_string, ffi_type, xptr, the_actual_args +-- lua--args = number, table, string, xptr, args +-- end of @placeholder +function callX(n_argc, t_string, str, index, t_values) +end + function main() printObjNames() printObjSizes() @@ -148,6 +155,10 @@ function main() pwd() xobjregister(add2_code, "add2") xobjregister(sub2_code, "sub2") + a=xcall(2,{"uint32","uint32"},"uint32",0, {30,20}) + print("call add result", a) + a=xcall(2,{"uint32", "uint32"},"uint32",1, {30,20}) + print("call sub result", a) end main() -- cgit v1.2.3