Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HeteroFlow
THAPI
Commits
3f894c2e
Commit
3f894c2e
authored
Apr 24, 2020
by
Brice Videau
Browse files
More readers/writers for bindings pointers.
parent
c1240992
Changes
1
Hide whitespace changes
Inline
Side-by-side
ze/gen_ze_refinements.rb
View file @
3f894c2e
require_relative
'gen_ze_library_base.rb'
METHOD_PREFIX
=
[
:put
,
:get
,
:write
,
:read
,
:put_array_of
,
:get_array_of
,
:read_array_of
]
METHOD_PREFIX
=
[
:put
,
:get
,
:write
,
:read
,
:put_array_of
,
:get_array_of
,
:read_array_of
,
:write_array_of
]
def
print_acessor
(
orig
,
add
)
METHOD_PREFIX
.
each
{
|
meth
|
...
...
@@ -29,6 +29,15 @@ $all_types.each { |t|
end
}
puts
<<
EOF
if FFI.find_type(:size_t).size == 8
EOF
print_acessor
(
:uint64
,
:size_t
)
puts
<<
EOF
else
EOF
print_acessor
(
:uint32
,
:size_t
)
puts
<<
EOF
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment