More keyword adding.

pull/15/head
Jussi Pakkanen 12 years ago
parent 3aff6de3e6
commit a7bfcbd6b9
  1. 6
      interpreter.py
  2. 2
      test cases/25 numbers/builder.txt

@ -49,15 +49,15 @@ class Host(InterpreterObject):
'is_big_endian' : self.is_big_endian_method,
})
def get_ptrsize_method(self, args):
def get_ptrsize_method(self, args, kwargs):
if sys.maxsize > 2**32:
return 64
return 32
def get_name_method(self, args):
def get_name_method(self, args, kwargs):
return platform.system().lower()
def is_big_endian_method(self, args):
def is_big_endian_method(self, args, kwargs):
return sys.byteorder != 'little'
class IncludeDirs(InterpreterObject):

@ -1,7 +1,7 @@
project('numbers', 'c')
if(host.pointer_size() == 64)
add_global_arguments('c', '-DIS64')
add_global_arguments('-DIS64', language : 'c')
endif
add_test('sizetest', executable('prog', 'prog.c'))

Loading…
Cancel
Save