API Update:Add CallBack

This commit is contained in:
artem3213212 committed 2018-05-09 11:07:55 +03:00
1 parent 88cfa48d24
commit b4da0b0b7a
4 files changed
+22 -15

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ Src.RegisterFunction('','main');
Module:=Src.Compilate;
Func1:=Module.Funtion['main'];
//Func2:=Module.Funtion['varmain'];
if 454<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
if 1<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
raise Exception.Create('Error in LuaTest');
//Var1:=Module.&Var['Pmain'];
//Var1.Val:=424;