equal
deleted
inserted
replaced
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 |