tests/python/python@py_ext/py_ext.xml
changeset 862 bb59865db6e6
parent 859 dbf82971f09d
child 1067 4f460c1dffb5
equal deleted inserted replaced
861:980800a5aad0 862:bb59865db6e6
     7 
     7 
     8 def MyPythonFunc(arg):
     8 def MyPythonFunc(arg):
     9     i = ctypes.c_int()
     9     i = ctypes.c_int()
    10     if(Python_to_C_Call(arg, i)):
    10     if(Python_to_C_Call(arg, i)):
    11         res = i.value
    11         res = i.value
    12         print "toC:", arg, "from C:", res
    12         print "toC:", arg, "from C:", res, "FBID:", FBID
    13     else:
    13     else:
    14         print "Failed Python_to_C_Call failed"
    14         print "Failed Python_to_C_Call failed"
    15         res = None
    15         res = None
    16     sys.stdout.flush()
    16     sys.stdout.flush()
    17     return res
    17     return res