Method: Carbon::Core::Pointer::Math#define_comp_pointer_function
- Defined in:
- lib/carbon/core/pointer/math.rb
#define_comp_pointer_function(op) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Defines a comparison function for two pointers.
83 84 85 86 87 88 89 |
# File 'lib/carbon/core/pointer/math.rb', line 83 def define_comp_pointer_function(op) function_name = PTYPE.call(op, [PTYPE, PTYPE]) Core.define(function: function_name) do |function| function[:return] = Carbon::Boolean define_comp_pointer_definition(op, function[:definition]) end end |