2014-08-28 17:27:04 +02:00
|
|
|
module Builtin
|
2014-08-28 15:39:35 +02:00
|
|
|
class Array
|
|
|
|
module ClassMethods
|
|
|
|
def get context , index = Virtual::Integer
|
2015-05-24 12:31:33 +02:00
|
|
|
get_function = Virtual::CompiledMethodInfo.create_method(:get , [ Virtual::Integer] , Virtual::Integer , Virtual::Integer )
|
2014-08-28 15:39:35 +02:00
|
|
|
return get_function
|
|
|
|
end
|
|
|
|
def set context , index = Virtual::Integer , object = Virtual::Reference
|
2015-05-24 12:31:33 +02:00
|
|
|
set_function = Virtual::CompiledMethodInfo.create_method(:set , [Virtual::Integer, Virtual::Reference] )
|
2014-08-28 15:39:35 +02:00
|
|
|
return set_function
|
|
|
|
end
|
|
|
|
def push context , object = Virtual::Reference
|
2015-05-24 12:31:33 +02:00
|
|
|
push_function = Virtual::CompiledMethodInfo.create_method(:push , [Virtual::Reference] )
|
2014-08-28 15:39:35 +02:00
|
|
|
return push_function
|
|
|
|
end
|
|
|
|
end
|
|
|
|
extend ClassMethods
|
|
|
|
end
|
|
|
|
end
|