• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4 
5 PyDoc_STRVAR(create_pointer_type__doc__,
6 "POINTER($module, type, /)\n"
7 "--\n"
8 "\n"
9 "Create and return a new ctypes pointer type.\n"
10 "\n"
11 "  type\n"
12 "    A ctypes type.\n"
13 "\n"
14 "Pointer types are cached and reused internally,\n"
15 "so calling this function repeatedly is cheap.");
16 
17 #define CREATE_POINTER_TYPE_METHODDEF    \
18     {"POINTER", (PyCFunction)create_pointer_type, METH_O, create_pointer_type__doc__},
19 
20 PyDoc_STRVAR(create_pointer_inst__doc__,
21 "pointer($module, obj, /)\n"
22 "--\n"
23 "\n"
24 "Create a new pointer instance, pointing to \'obj\'.\n"
25 "\n"
26 "The returned object is of the type POINTER(type(obj)). Note that if you\n"
27 "just want to pass a pointer to an object to a foreign function call, you\n"
28 "should use byref(obj) which is much faster.");
29 
30 #define CREATE_POINTER_INST_METHODDEF    \
31     {"pointer", (PyCFunction)create_pointer_inst, METH_O, create_pointer_inst__doc__},
32 /*[clinic end generated code: output=51b311ea369e5adf input=a9049054013a1b77]*/
33