예제 #1
0
파일: api.py 프로젝트: zhouat/pyrebox
def get_os_bits():
    """ Return the bitness of the system / O.S. being emulated

        :return: The bitness of the system / O.S. being emualated
        :rtype: int
    """
    import c_api
    #If this function call fails, it will raise an exception. 
    #Given that the exception is self explanatory, we just let it propagate upwards 
    return c_api.get_os_bits()
예제 #2
0
파일: api.py 프로젝트: CRYP706URU/pyrebox
def get_os_bits():
    """ Return the bitness of the system / O.S. being emulated

        :return: The bitness of the system / O.S. being emualated
        :rtype: int
    """
    import c_api
    # If this function call fails, it will raise an exception.
    # Given that the exception is self explanatory, we just let it propagate
    # upwards
    return c_api.get_os_bits()