tests/python/python@py_ext/py_ext.xml
changeset 866 ee6adf7586c1
parent 862 bb59865db6e6
child 1067 4f460c1dffb5
equal deleted inserted replaced
865:c377a1d7767a 866:ee6adf7586c1
     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