Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <Python.h>
  2.  
  3. static PyObject* py_veripy(PyObject* self, PyObject* args){
  4.  
  5. /* BODY */
  6. return Py_BuildValue("i", 1);
  7.  
  8. }
  9.  
  10. // Bind Python function names to our C functions
  11. static PyMethodDef veripy_methods[] = {
  12. {"veripy", py_veripy, METH_VARARGS},
  13. {NULL, NULL}
  14. };
  15.  
  16. // Python calls this to let us initialize our module
  17. extern "C" void initveripy(){
  18. (void) Py_InitModule("veripy", veripy_methods);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement