示例#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)