예제 #1
0
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
예제 #2
0
 def shr(self, amx):
     pri = cast_value(ucell, amx.PRI)
     amx.PRI = pri >> amx.ALT
예제 #3
0
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
예제 #4
0
def sp_ctof(value):
    """Takes a raw value and ctypes casts it to a Python float value"""
    cf = pointer(c_long(value))
    return cast_value(c_float, cf)
예제 #5
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
예제 #6
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
예제 #7
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def shr(self, amx):
     pri = cast_value(ucell, amx.PRI)
     amx.PRI = pri >> amx.ALT
예제 #8
0
def sp_ctof(value):
    """Takes a raw value and ctypes casts it to a Python float value"""
    cf = pointer(c_long(value))
    return cast_value(c_float, cf)