PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/li_cpointer_runme.py

#
Python | 10 lines | 6 code | 4 blank | 0 comment | 1 complexity | 21d38e30b90a869ff384c8c82771eb4c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from li_cpointer import *
  2. p = new_intp()
  3. intp_assign(p,3)
  4. if intp_value(p) != 3:
  5. raise RuntimeError
  6. delete_intp(p)