aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/lua-scripts
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-01-21 19:38:24 +0000
committerbloodstalker <thabogre@gmail.com>2018-01-21 19:38:24 +0000
commit4358675379c25d444791ebb9acbeb76cf8bd5684 (patch)
treefa8b65dbd5f76242edfcdebbd5bb5718bc8782f2 /bruiser/lua-scripts
parentfixing travis (diff)
downloadmutator-4358675379c25d444791ebb9acbeb76cf8bd5684.tar.gz
mutator-4358675379c25d444791ebb9acbeb76cf8bd5684.zip
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
Diffstat (limited to 'bruiser/lua-scripts')
-rw-r--r--bruiser/lua-scripts/demo1.lua11
1 files changed, 11 insertions, 0 deletions
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()